JSFiddle - React, Tailwind, and code Playground
by orchid1
JavaScript
function foo(a, b){
if(arguments.length === 2){
//do something
}else{
alert("Only 1 argument is passed");
}
}
foo(1);
by orchid1
function foo(a, b){
if(arguments.length === 2){
//do something
}else{
alert("Only 1 argument is passed");
}
}
foo(1);