Answers for "for each loop with arrowfunction"

0

for each loop with arrowfunction

someValues.forEach((element) => {
    console.log(element);
});

OR

someValues.forEach((element, index) => {
    console.log(`Current index: ${index}`);
    console.log(element);
});
Posted by: Guest on August-25-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language