JavaScript Closures & Scope Explained
Syntax - Tasty Web Development Treats
Wes Bos
4.9 • 1.2K Ratings
🗓️ 4 September 2023
⏱️ 24 minutes
🧾️ Download transcript
Summary
Transcript
Click on a timestamp to play from that location
| 0:00.0 | Monday. Monday. Day. Open wide dev fans. Get ready to stuff your face with Javascript CSS. |
| 0:08.2 | Node modules. Barbecue tips. Get workflow. Break dancing. Soft skills. Web development. |
| 0:12.8 | The hastiest. The craziest. The tastiest. Web development treats. Coming in hot. Here is Wes. |
| 0:19.6 | Barakuda boss and Scott. El Toro local. Tolinsky. Welcome to syntax on this Monday hasty treat. |
| 0:32.0 | We're going to be talking about closures. Now closures are one of those things in Javascript that |
| 0:38.4 | have kind of a weird name. If you're coming to Javascript or programming, you're new to this stuff. |
| 0:43.7 | You see the word closure. It sounds interesting. It sounds maybe perhaps confusing. So we're going to |
| 0:49.4 | be talking all about what closures are. How to reason about them and what exactly why are they |
| 0:54.8 | something that people even talk about or why they're interesting. My name is Scott Tolinsky. I'm |
| 0:58.5 | a developer for Denver. And with me, as always, is Wes boss. What's up, Wes? Hey, not too too much. |
| 1:05.6 | We have had this on the list for about a couple of months now of explaining closures. |
| 1:13.6 | I've done the explain closures. I did it in my beginner Javascript course. Check it out. If |
| 1:19.9 | you like this show, you can buy it. It's really good. I've done it a couple of times when teaching |
| 1:26.5 | and whatnot. It's always one of those tricky things to do. It's scarier. It sounds scarier than |
| 1:35.2 | it actually is. And you got to have real world examples of when you might use that. Otherwise, |
| 1:41.7 | it's just this bizarre concept that you might not totally understand. Yeah. And it doesn't help |
| 1:47.8 | that it goes along with in general scope in scoping, which is always one of those things that I feel |
| 1:53.9 | like causes people's eyes to glaze over a bit when they're learning about scoping or it's not |
| 1:59.8 | a ton of fun. So we're going to try to make it fun. Perhaps we will bring in a sandwich metaphor. |
| 2:05.1 | I don't think so, but who knows? With Wes, you never know if the sandwich metaphor is coming. |
| 2:10.5 | So let's talk about scope overall first quickly. So the different types of like macro to micro |
| 2:17.4 | scope that we have. So for instance, we have a global scope. And that is everything that you can |
... |
Please login to see the full transcript.
Disclaimer: The podcast and artwork embedded on this page are from Wes Bos, and are the property of its owner and not affiliated with or endorsed by Tapesearch.
Generated transcripts are the property of Wes Bos and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.
Copyright © Tapesearch 2026.

