Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

for of index

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