Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

forEach index

const array1 = ['a', 'b', 'c'];

array1.forEach((element, index) => console.log(element, index));
 
PREVIOUS NEXT
Tagged: #forEach #index
ADD COMMENT
Topic
Name
4+9 =