Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Array Foreach Loop

const avengers = ['thor', 'captain america', 'hulk'];
avengers.forEach(element => {
  //Statement
  console.log(element);
});
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #Array #Foreach #Loop
ADD COMMENT
Topic
Name
2+3 =