JavaScript: Closures
52mIntermediate2021-11-08
Authors

Sasha Vodnik
Principal Technical Course Developer at DocuSign
Course details
Closures—a core concept for intermediate and advanced JavaScript developers—can be challenging for many developers to wrap their heads around. In this concise course, Sasha Vodnik breaks down this essential concept, explaining what closures are and how to use them in JavaScript. Sasha steps through the building blocks of closures and identifies what they look like in code. He also shares how to avoid unintended closures, use JavaScript features in place of closures, and implement the module pattern.
Skills covered
JavaScriptOracleLearningProgramming LanguagesSoftware Development
Concepts
0. Introduction
- 01 - Using closures in JavaScript
- 02 - What you should know
- 03 - Environment setup and exercise files
1. Building Blocks of Closures
- 04 - Local and global scope
- 05 - Nesting functions
- 06 - Return a value from an inner function
- 07 - Create parallel closures
2. Creating and Using Closures
- 08 - Implement the module pattern
- 09 - Avoid unintended closures
- 10 - Use JS features in place of closures
Conclusion
- 11 - Continuing to learn closures
Related courses
- JavaScript Practice: Scope and Closures
- JavaScript: Scope
- Learning Functional Programming with JavaScript ES6+ (2019)
- Learning Functional Programming with JavaScript (ES5)
- SharePoint Advanced: Enhancing Functionality with JavaScript
- JavaScript: Maps and Sets
- Learning TensorFlow with JavaScript
- JavaScript: Web Workers
Related learn paths
- Become a JavaScript Developer
- Improve Your JavaScript Language Skills
- Explore Web Development with Vanilla JavaScript
- Build Your Ruby on Rails Skills
- JavaScript Foundations Professional Certificate
- Advance Your JavaScript Skills
- Become a MEAN Javascript Developer
- Explore App Development with the MERN Stack