An Interest In:
Web News this Week
- April 28, 2024
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
May 27, 2015 01:00 pm
Original Link:
Closures in JavaScript
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.
Original Link:
Share this article:
Tweet
No Article Link
TutsPlus - Code
Tuts+ is a site aimed at web developers and designers offering tutorials and articles on technologies, skills and techniques to improve how you design and build websites.More About this Source Visit TutsPlus - Code