Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

log arguments in javascript

function logArguments(a, b, c) {
  console.log(arguments[0], arguments[1], arguments[2]);
  console.log(arguments);
}
test(1,2,3);  
// Output
// 1, 2, 3
// [Arguments] { '0': 1, '1': 2, '2': 3 }
Source by www.educative.io #
 
PREVIOUS NEXT
Tagged: #log #arguments #javascript
ADD COMMENT
Topic
Name
9+6 =