Advertisement
Advertisement
Advertisement
Advertisement
Difficulty:IntermediateLength:QuickLanguages:
Understanding Closures
To recap the concepts outlined in the video, note that:
We covered the concept of variable scope. Specifically, we talked about the following two items:
- Global Scope is a variable with global scope is accessible everywhere.
- Local Scope is a variable with local scope is accessible only within a function body.
In Summary
Closure is what happens when we manipulate variable scope in our functions. We might do this either to make variable contents accessible where they would not otherwise be, or to protect a variable from unwanted access.
Advertisement
Advertisement
Weekly email summary
Subscribe below and we’ll send you a weekly email summary of all new Code tutorials. Never miss out on learning about the next big thing.
Update me weeklyAdvertisement
Translations
Envato Tuts+ tutorials are translated into other languages by our community members—you can be involved too!
Translate this postPowered by![Native Native]()

Advertisement
Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.