Looping ArraysIterating over array elements. Looping Arrays Loops are often used to iterate over the elements of an array. const cars = ["BMW", "Volvo", "Saab", "Ford"]; for (let i = 0; i < cars.length; i++) { text += cars[i] + ""; } Exampleconst fruits = ["Apple", "Banana"]; for (let i = 0; i < fruits.length; i++) { console.log(fruits[i]); }Try it Yourself PreviousNext