Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript for...of index

for (const [i, v] of ['a', 'b', 'c'].entries()) {
  console.log(i, v)
}
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #javascript #index
ADD COMMENT
Topic
Name
2+1 =