Running this on console displays some details right after, followed by the actual console logs. What does those details mean in different browser?
Your setTimeout() calls create functions that all reference the exact same variable, that i defined in the for loop. When the loop is finished, the value of i will be 10, so that's what's logged when the timer handlers fire.
setTimeout()
i
for
10