posted 17 years ago
In JavaScript you do not have to declare a variabe. If you assign to a variable that has not been declared, it is automaticaloly declared at a global level.
So if you do not use var it is global. If you are expecting that i to be local for your for loop, declare it.
Eric