javascript get current iteration of for of loop code example
Example: javascript for...of index
for (const [i, v] of ['a', 'b', 'c'].entries()) {
console.log(i, v)
}
for (const [i, v] of ['a', 'b', 'c'].entries()) {
console.log(i, v)
}