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
 
PREVIOUS NEXT
Tagged: #javascript #foreach
ADD COMMENT
Topic
Name
5+5 =