Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript function variable arguments

function foo() {
  for (var i = 0; i < arguments.length; i++) {
    console.log(arguments[i]);
  }
}

foo(1,2,3);
//1
//2
//3
 
PREVIOUS NEXT
Tagged: #javascript #function #variable #arguments
ADD COMMENT
Topic
Name
4+6 =