contador de loop javascript

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