Native JavaScript Paramater Functions

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






2 thoughts on “Native JavaScript Paramater Functions

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s