The length property of a Function object indicates the number of parameters expected by the function.
function func2(a, b) {}
console.log(func2.length);
// 2
The length property of a Function object indicates the number of parameters expected by the function.
function func2(a, b) {}
console.log(func2.length);
// 2