Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

foreach loop js arrow functons

someValues.forEach((element, index) => {
    console.log(`Current index: ${index}`);
    console.log(element);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #foreach #loop #js #arrow #functons
ADD COMMENT
Topic
Name
7+6 =