Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Javascript function method with any number of arguments

function foo() {
  for (var i = 0; i < arguments.length; i++) {
    console.log(arguments[i]);
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Javascript #function #method #number #arguments
ADD COMMENT
Topic
Name
2+6 =