contador de loop javascript
for (let i = 0; i < arr.length; i++) {...}
StackOverflower
for (let i = 0; i < arr.length; i++) {...}