Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript foreach

let numbers = ['one', 'two', 'three', 'four'];

numbers.forEach((num) => {
  console.log(num);
});  // one   //two //three // four
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #foreach
ADD COMMENT
Topic
Name
1+5 =