September 4th, 2023 × #javascript#closures#scope
JavaScript Closures & Scope Explained
Scott and Wes explain JavaScript closures, scoping, and give examples of how closures can be useful.

Wes Bos Host

Scott Tolinski Host
In this Hasty Treat, Scott and Wes explain closures and the different types of scope used, and examples of where a closure is useful.
Show Notes
- 00:25 Welcome
- 02:10 Scope
- Beginner JavaScript course
- 04:37 Local scope
- 07:35 Enclosing scope
- 09:39 Module scope
- 10:36 JavaScript is lexically scoped
- 11:50 Closures explained
- 16:06 Examples of where a closure is useful
- Examples of Closures
- Tricky Bits
- 22:56 Why don't you just use a class?
Tweet us your tasty treats
- Scott's Instagram
- LevelUpTutorials Instagram
- Wes' Instagram
- Wes' Twitter
- Wes' Facebook
- Scott's Twitter
- Make sure to include @SyntaxFM in your tweets
- Wes Bos on Bluesky
- Scott on Bluesky
- Syntax on Bluesky