Playing: 662: JavaScript Closures & Scope Explained
0:00
LOUDNESS
Episode 574
|Feb 10th, 2023
Supper Club Γ Qwik framework from MiΕ‘ko Hevery, the Creator of Angular
Episode 393
|Oct 4th, 2021
Hasty Treat - Spicy Takeout - PHP Is Good and Weβre Just Re-Creating It
Sep 4th, 2023
JavaScript Closures & Scope Explained
π Download ShowβοΈ Edit Show NotesIn 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