You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the variant 'foo' in that function will overwrite the "foo = 'globalvar'".
so i think we alway need to create the local 'foo' var in "for foo in ..", "for foo of .." regardless of the 'foo' variant has been defined before.
The text was updated successfully, but these errors were encountered:
foo = 'globalvar'
bar = do ->
for foo in [1..5]
alert foo
alert foo # -> 6
the variant 'foo' in that function will overwrite the "foo = 'globalvar'".
so i think we alway need to create the local 'foo' var in "for foo in ..", "for foo of .." regardless of the 'foo' variant has been defined before.
The text was updated successfully, but these errors were encountered: