Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Array Foreach Loop

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