Home / Javascript Tips Generated By ChatGPT / Using forEach for Array Iteration in Javascript Iterate over array elements with forEach. Source Code let fruits = ['apple', 'banana', 'cherry']; fruits.forEach(fruit => console.log(fruit));