We can write/implement efficient browser render function calls with passing the parameters/arguments like.
//Small native JavaScript snippets
function printMulNum(n1, n2) { return n1>n2 ? n1 : n2 ;}
function argTotalSum() {
var sum = 0;
for(var i = 0; i < arguments.length; i++) {
sum += arguments[i];
}
return sum;
}
//passing the argumnets/paramaters to the function
argTotalSum(1, 2);
argTotalSum(1, 2, 3);
argTotalSum(1, 2, 3, 4);
To get the more related information , go through the links
http://javascript.info/tutorial/arguments
Good Info
LikeLiked by 1 person
interesting (*::*)
LikeLike