someValues.forEach((element) => { console.log(element); }); OR someValues.forEach((element, index) => { console.log(`Current index: ${index}`); console.log(element); });