Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

variable arguments js

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

foo(1,2,3);
//1
//2
//3
 
PREVIOUS NEXT
Tagged: #variable #arguments #js
ADD COMMENT
Topic
Name
8+9 =