JavaScript: Closures

JavaScript: Closures

52mIntermediate2021-11-08

Authors

Sasha Vodnik

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

Introduction

  • Using closures in JavaScript
  • What you should know
  • Environment setup and exercise files

Building Blocks of Closures

  • Local and global scope
  • Nesting functions
  • Return a value from an inner function
  • Create parallel closures

Creating and Using Closures

  • Implement the module pattern
  • Avoid unintended closures
  • Use JS features in place of closures

Conclusion

  • Continuing to learn closures
40,000 Toman