Answers for "foreach iterate"

23

foreach jas

const array1 = ['a', 'b', 'c'];

array1.forEach(element => console.log(element));
Posted by: Guest on January-10-2020
0

Array Foreach Loop

const avengers = ['thor', 'captain america', 'hulk'];
avengers.forEach(element => {
  //Statement
  console.log(element);
});
Posted by: Guest on September-14-2021
0

ForEach loop

const a = ["a", "b", "c"];
a.forEach((entry) => {
    console.log(entry);
});
Posted by: Guest on July-15-2021

Code answers related to "foreach iterate"

Code answers related to "Javascript"

Browse Popular Code Answers by Language