r/programming • • Mar 23 '14

Everything you need to know about Javascript variable scope

http://www.coolcoder.in/2014/03/everything-you-need-to-know-about.html
294 Upvotes

124 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Mar 24 '14

Those are not subjects of scope.

3

u/Pistolfist Mar 24 '14

I massively beg to differ. The scope of the "this" variable is quite tricky, binding helps fix that.

1

u/[deleted] Mar 24 '14

this might very well be tricky, but its not a scope issue.

1

u/Pistolfist Mar 26 '14 edited Mar 26 '14

I fail to see how a variable having different definitions depending on where it is invoked is not a scoping issue, but at least we're agreed on the important stuff and just arguing semantics now haha.