This is just a technical question. When I use a for statement, its iteration variable can't be use outside scope for. But then why the compiler not allow me create a variable with the same name of the for itertation varaible.
for (var i = 0; i < 10; i++){}
var a = i; // it not allowed this
var i = 3; // bit it also allowed this, and i think that it is possible for the compiler