Answers for "get function parameters count javascript"

0

get function parameters count javascript

function foo(a, b) {
    for (var i=0;i<arguments.length;i++) {
        console.log(arguments[i]);
    }
}

console.log(foo.length); // reports 2, even though `foo` can access all your arguments!
Posted by: Guest on April-15-2021

Code answers related to "get function parameters count javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language