const someArray = [9, 2, 5]; someArray.forEach((value, index) => { console.log(index); // 0, 1, 2 console.log(value); // 9, 2, 5 });