JavaScript Closures Explained Simply

  Рет қаралды 6,212

DevSage

DevSage

Күн бұрын

Пікірлер: 34
@chloeliu6642
@chloeliu6642 Жыл бұрын
I came here after watching your recursion tutorial, which is the best recursion explanation on KZbin. Glad I found this one as well. Thank you!!
@UniversalKnowledge01
@UniversalKnowledge01 2 жыл бұрын
Great explanation, very clear and understandable.
@DevSage
@DevSage 2 жыл бұрын
Glad you think so!
@Computeshorts
@Computeshorts 2 жыл бұрын
one of the best explanation of closures I've seen. Thanks @DevSage
@Tony.Nguyen137
@Tony.Nguyen137 Жыл бұрын
Is every function that has access to the „parent scope“ a closure? I have a simple global variable >let a< , and a simple single function add( ){console.log(a)}. The function add has access to the variable >a< which is outside its scope. Does it make this function add() a closure?
@golden_oriel
@golden_oriel Жыл бұрын
This helped me comprehend closures. Using what you showed me. I was able to write my own closures and build upon it making it more complex over each iteration of adder(). This was so good I'm now helping my fellow students with closures. ty bro
@damo190
@damo190 2 жыл бұрын
Sir, the value of 'this' is lexical(static) scoped or dynamic scoped? I have a confusion. I think it's dynamic scoped because it gets its value through execution context. But I have already learned, JavaScript only uses lexical scope.
@JibreelOfficial-zg9qt
@JibreelOfficial-zg9qt 2 жыл бұрын
Hey bro ! I really wanna know the name of the font you are using here in vscode or the theme
@DevSage
@DevSage 2 жыл бұрын
Theme: SynthWave '84 Font: Consolas
@GBlunted
@GBlunted Жыл бұрын
Finally! I've watched a few of these now trying to understand and I feel this is the best explanation thus far! 👍🏽 Would love to see some actual useful cases maybe
@moiseseastland8643
@moiseseastland8643 Жыл бұрын
So is add10=x and y=the console.log 5?
@tycanton5340
@tycanton5340 2 жыл бұрын
I'm a teacher of UI engineers and this video is awesome...
@DevSage
@DevSage 2 жыл бұрын
😅 Appreciate that. If you don't already know about it, you and your guys may find some value in knowing how debouncing works as well. kzbin.info/www/bejne/eqi4Z4Rql6h0eJI It builds on top of the idea of closures
@wasitthat
@wasitthat Жыл бұрын
Excellent presentation and explanation.
@zb2747
@zb2747 2 жыл бұрын
Simple explanation with a understandable example - thank you!
@be2wa
@be2wa 2 жыл бұрын
@DevSage you explain things really well, sir.
@DevSage
@DevSage 2 жыл бұрын
Appreciate it. That means I'm accomplishing my mission 🎯💯
@2ncielkrommalzeme210
@2ncielkrommalzeme210 2 жыл бұрын
const add10=adder(10); is a closure i understand this. is it okay.?
@TheZayzoo
@TheZayzoo 7 ай бұрын
Is this where stale state comes into play ?
@Noahmetix
@Noahmetix Жыл бұрын
DevSage , thanks for sharing this type of content your explain this very easy , Thanks a lot !!!!!
@dylanhall5305
@dylanhall5305 2 жыл бұрын
I’ve been working with JavaScript for years and never have had as good an understanding of closures as I do now
@DevSage
@DevSage 2 жыл бұрын
Glad I could help 😎
@chandrasekharreddyguda2939
@chandrasekharreddyguda2939 2 жыл бұрын
Clear and crispy
@soumadip_banerjee
@soumadip_banerjee Жыл бұрын
Thank u ❤
@ahmedseada7371
@ahmedseada7371 2 жыл бұрын
Great Content And Most Of it Working With C# Also SO Thanks A lot
@DevSage
@DevSage 2 жыл бұрын
You are welcome
@andrewcenteno3462
@andrewcenteno3462 Жыл бұрын
This guy is FREAKING Good!!!
@OmarKhaled-nk6ln
@OmarKhaled-nk6ln 2 жыл бұрын
Great video THANKS
@pauladeniyi5876
@pauladeniyi5876 8 ай бұрын
This guy should be on Udemy.
@Lifeofrandomness
@Lifeofrandomness Жыл бұрын
Thanks Man !
@saharnosrati-h9d
@saharnosrati-h9d 11 ай бұрын
Nice explanation
@DevSage
@DevSage 7 ай бұрын
Thanks!
@structuralcraft
@structuralcraft 2 жыл бұрын
Good
@DevSage
@DevSage 2 жыл бұрын
Thanks
JavaScript Debouncing Explained Simply
16:04
DevSage
Рет қаралды 9 М.
JavaScript Closures Tutorial (Explained in depth)
19:03
ColorCode
Рет қаралды 79 М.
УЛИЧНЫЕ МУЗЫКАНТЫ В СОЧИ 🤘🏻
0:33
РОК ЗАВОД
Рет қаралды 7 МЛН
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
The Lost World: Living Room Edition
0:46
Daniel LaBelle
Рет қаралды 27 МЛН
JavaScript this Keyword Explained Simply
11:42
DevSage
Рет қаралды 16 М.
Learn Closures In 13 Minutes
13:22
Web Dev Simplified
Рет қаралды 73 М.
The JavaScript Survival Guide
14:47
Fireship
Рет қаралды 739 М.
Javascript Design Patterns #5 - Observer Pattern
8:12
DevSage
Рет қаралды 55 М.
How do closures work? (JavaScript Fundamentals, 2023)
9:12
Andrew Burgess
Рет қаралды 6 М.
Javascript Closure Tutorial | Closures Explained
17:58
Dave Gray
Рет қаралды 157 М.
JavaScript Web Workers Explained
12:52
DevSage
Рет қаралды 103 М.
Learn JavaScript CLOSURES in 10 minutes! 🔒
10:58
Bro Code
Рет қаралды 27 М.
Closures In Javascript
14:15
Tech Box To Unbox
Рет қаралды 9 М.
Bricks Builder: : Query Loop anything from any API!
27:56
WP Easy
Рет қаралды 1,4 М.
УЛИЧНЫЕ МУЗЫКАНТЫ В СОЧИ 🤘🏻
0:33
РОК ЗАВОД
Рет қаралды 7 МЛН