JavaScript Closures are Super Simple!

preview_player
Показать описание
Closure in JavaScript is a topic that confuses a lot of people, but it's actually really simple. In the first ten minutes, I'll show you with code what a closure is and how it works. In the second part, I'll show you three places in which you're probably already using closure.

Things are more fun when you understand them!

00:00 - Intro
00:49 - JavaScript Function Portability
03:11 - Scope of variables in JavaScript
05:08 - Closure is a Portable Function Scope
09:16 - Event Handlers are closures
10:47 - Definition of Closure (write this down)
11:22 - JavaScript Modules are Closures
15:15 - ES6 Classes ar Closures

#JavaScript #Closure #ES6

Рекомендации по теме
Комментарии
Автор

This presentation is totally awesome. I am proud to be one of the first viewers. You deserve many more.

paganaye
Автор

Please keep up the good work! I came across your website first and I really liked your teaching method on your website and now here, I would love to see more!

ibrahimiussharifos
Автор

Dang man, your content is good. I had trouble understanding closures for a while, but you broke it down so well!

TheKingSahle
Автор

Good job! :) I really enjoyed watching your explanation. Subscribed!

kaukasvejo
Автор

Glad to see you've gained some subscribers from the Reddit post, well deserved can't wait for the video on prototypical inheritance!

crekkk
Автор

Fantastic! Please keep up the good work! I don't usually comment on videos but I really enjoy your teaching method and would love to see more!

benjaminwilliamson
Автор

That's an amazing video, very precise and well explained. Thank you.

mohammadalaaelghamry
Автор

Oh wow, thanks. too good. Plz keep uploading

consciousmi
Автор

Here from the ad. Solid content man. I'll be waiting for more.

saurabhchaudhary
Автор

Brilliant. I love these. I really love how you start out with a very simple, even "wrong", example of how to do things. Then you build on top of it to lead into higher concepts. I accidentally learned how web pack and modules work here too! This is the best way for me to learn, start with a simple naive example that's maybe even the wrong way to do things, and evolve into something more elaborate. Thanks for doing these!

johnhershberg
Автор

Great video. Found this channel from on of your comments on Reddit and looking forward to seeing more soon :)

lennu
Автор

Your exaplnation is great. Looking forward to watching more of your videos for JS.

amdimov
Автор

That was very helpful, it is one of the best explanation on the internet.

programinggrid
Автор

Amazing videos, I really like your teaching style and would love to see more videos that you produce!

GregTank
Автор

I learn and forget what exactly a closure is every year. I think this time it will stick. Thanks!

KevinVandyTech
Автор

Great hands on explanation. Well done!

GuyEschemann
Автор

I like the way you teach in this video and looking forward to a lot more content from you.

JenningHo
Автор

Excellent and deep explaination 👍
Keep rocking ..

MrRuchir
Автор

great job, you made it really simple, thanks a lot

waelx
Автор

4:03 I thought only let got block scoping but var got it too now I'm confused

ko-Daegu