Know How Many Variables are Expected by a Function
by Mohan[ Edit ] 2012-09-20 22:24:33
Know How Many Variables are Expected by a Function
This is a great tip that allows you to know exactly how many variables are expected by a function. For example:
function add_nums(num1, num2){
return num1 + num2;
}
add_nums.length