const fruits = ["Apple", "Mango", "Peach"]; for (let i = 0; i < fruits.length; i++) { const fruit = fruits[i]; console.log(fruit); }
const fruits = ["Apple", "Mango", "Peach"]; for (let fruit of fruits) console.log(fruit);