This surprised me.

I made the scenario as simple as possible.

http://jsbin.com/eyopo3/edit

You can see in function g() I change the value of the variable i after
having used it.

That may seem like a useless thing to do, but in the production code I was
working on, i was a loop iterator. 

-- 
View this message in context: 
http://old.nabble.com/javascript-variable-scope-tp26648745s27240p26648745.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to