[Project_owners] Javascript question

Eric H. Jung eric.jung at yahoo.com
Sat Jul 1 07:55:02 EDT 2006


Hi,

I know this works in JS:

for (var i=0,j="foo";i<5; i++) {dump(i);}
dump(j);

It breaks typical scoping rules, but is there anything problematic with
it? Is everything "global" so it doesn't matter if I do this?

thanks,
eric



More information about the Project_owners mailing list