The many ways of specifying parameters in Javascript
1) Taking Parameters as they are : function fn(args){ console.log(args); } fn('orange','apple','grapes'); //orange There are 2 arguments being passed, but writing the parameters in the above syntax in Javascript will only make it consider the first argument. 2) The Rest Operator … function fn(arg1,...args){ console.log(args); } fn('orange','apple','grapes'); //[ 'apple', 'grapes' ] The…










