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