for loop array javascript arrow function code example
Example: foreach loop js arrow functons
someValues.forEach((element, index) => {
console.log(`Current index: ${index}`);
console.log(element);
});
someValues.forEach((element, index) => {
console.log(`Current index: ${index}`);
console.log(element);
});