MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1j1cw7/coffeescripts_scoping_is_madness/cbaaijv/?context=3
r/programming • u/donatj • Jul 25 '13
315 comments sorted by
View all comments
Show parent comment
3
Well you have two functions in the same scope, they can both have their own x, but if you define x above the functions, thay're magically both using that x instead.
View all comments
Show parent comment
3
u/donatj Jul 25 '13
Well you have two functions in the same scope, they can both have their own x, but if you define x above the functions, thay're magically both using that x instead.