I just learned that this:
Is very different from:
Especially if it's in a recursive routine.
In the first case, i is a global. In the second it's local.
You might argue that the first case is useless and the language should only allow locals in that spot.
But this is JavaScript.
There should be a special smiley that you put after that last sentence.