var array = ['a', 'b', 'c'] array.forEach((value, index) => { console.log(index); // Will log each index console.log(value); // Will log each value });