const fruits = ['apple', 'orange', 'banana', 'mango']; fruits.forEach((item, index)=>{ console.log(index, item) });