Emmabee
0
Q:

foreach jas

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

array1.forEach(element => console.log(element));
20
let array = ['Item 1', 'Item 2', 'Item 3'];

array.forEach(item => {
	console.log(item); // Logs each 'Item #'
});
6

Related

New to Communities?

Join the community