Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

JavaScript: Closures

via LinkedIn Learning

Write review

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
Learn what closures are and how to use them in JavaScript. Review the building blocks of closures and discover what closures look like in code.

Syllabus

Introduction
  • Using closures in JavaScript
  • What you should know
  • Environment setup and exercise files
  • Using CoderPad challenges
1. Building Blocks of Closures
  • Local and global scope
  • Nesting functions
  • Return a value from an inner function
  • Create parallel closures
  • Solution: Create a closure using a nested function
2. Creating and Using Closures
  • Implement the module pattern
  • Avoid unintended closures
  • Use JS features in place of closures
  • Solution: Create a module
Conclusion
  • Continuing to learn closures

Taught by

Sasha Vodnik

Reviews

4.7 rating at LinkedIn Learning based on 191 ratings

Start your review of JavaScript: Closures

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.