Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript for of loop

(function() {
  for (const argument of arguments) {
    console.log(argument);
  }
})(1, 2, 3);

// 1
// 2
// 3
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #loop
ADD COMMENT
Topic
Name
6+3 =