Know How Many Variables are Expected by a Function

by Mohan 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





588
like
0
dislike
0
mail
flag

You must LOGIN to add comments