function foo() { //var var1=Array.prototype.slice.call(arguments); var var1=[].slice.call(arguments); console.log(var1.length); } foo(0,1,2,3,4,5,6);
function foo() { //var var1=Array.prototype.slice.call(arguments); var var1=[].slice.call(arguments); console.log(var1.length); } foo(0,1,2,3,4,5,6);