let fruits = ["apple", "banana", "cherry"];
// For loop
for (let i = 0; i < fruits.length; i++) {
console.log(fruits[i]);
}
// For...of loop (ES6)
for (let fruit of fruits) {
console.log(fruit);
}
// Array.forEach() method
fruits.forEach((fruit) => {
console.log(fruit);
});