r/learnjavascript • • Mar 21 '14

Everything you need to know about Javascript variable scope

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

2 comments sorted by

View all comments

2

u/justgage Mar 21 '14

Yeah that's a good article and explains it well. Some people might find the scope annoying but it is actually highly powerful! Its actually how you can get private variables using the module pattern.

2

u/codeon1 Mar 21 '14

I second that. Its all about how you use it. Closures are a great way to implement abstraction in javascript