JavaScript Closures Explained Simply

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

DevSage

DevSage

Күн бұрын

Пікірлер: 34
@UniversalKnowledge01
@UniversalKnowledge01 2 жыл бұрын
Great explanation, very clear and understandable.
@DevSage
@DevSage 2 жыл бұрын
Glad you think so!
@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!!
@Computeshorts
@Computeshorts 2 жыл бұрын
one of the best explanation of closures I've seen. Thanks @DevSage
@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
@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
@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?
@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.
@pauladeniyi5876
@pauladeniyi5876 6 ай бұрын
This guy should be on Udemy.
@be2wa
@be2wa 2 жыл бұрын
@DevSage you explain things really well, sir.
@DevSage
@DevSage 2 жыл бұрын
Appreciate it. That means I'm accomplishing my mission 🎯💯
@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
@zb2747
@zb2747 2 жыл бұрын
Simple explanation with a understandable example - thank you!
@wasitthat
@wasitthat Жыл бұрын
Excellent presentation and explanation.
@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
@andrewcenteno3462
@andrewcenteno3462 Жыл бұрын
This guy is FREAKING Good!!!
@JibreelOfficial-zg9qt
@JibreelOfficial-zg9qt Жыл бұрын
Hey bro ! I really wanna know the name of the font you are using here in vscode or the theme
@DevSage
@DevSage Жыл бұрын
Theme: SynthWave '84 Font: Consolas
@moiseseastland8643
@moiseseastland8643 10 ай бұрын
So is add10=x and y=the console.log 5?
@Noahmetix
@Noahmetix Жыл бұрын
DevSage , thanks for sharing this type of content your explain this very easy , Thanks a lot !!!!!
@soumadip_banerjee
@soumadip_banerjee Жыл бұрын
Thank u ❤
@TheZayzoo
@TheZayzoo 5 ай бұрын
Is this where stale state comes into play ?
@ahmedseada7371
@ahmedseada7371 2 жыл бұрын
Great Content And Most Of it Working With C# Also SO Thanks A lot
@DevSage
@DevSage 2 жыл бұрын
You are welcome
@2ncielkrommalzeme210
@2ncielkrommalzeme210 2 жыл бұрын
const add10=adder(10); is a closure i understand this. is it okay.?
@OmarKhaled-nk6ln
@OmarKhaled-nk6ln 2 жыл бұрын
Great video THANKS
@Lifeofrandomness
@Lifeofrandomness Жыл бұрын
Thanks Man !
@saharnosrati-h9d
@saharnosrati-h9d 9 ай бұрын
Nice explanation
@DevSage
@DevSage 5 ай бұрын
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
Рет қаралды 75 М.
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 124 МЛН
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 5 МЛН
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 13 МЛН
Do you love Blackpink?🖤🩷
00:23
Karina
Рет қаралды 22 МЛН
Javascript Closure Tutorial | Closures Explained
17:58
Dave Gray
Рет қаралды 154 М.
Learn Closures In 13 Minutes
13:22
Web Dev Simplified
Рет қаралды 70 М.
JavaScript this Keyword Explained Simply
11:42
DevSage
Рет қаралды 15 М.
Programming Terms: Closures - How to Use Them and Why They Are Useful
11:44
9.6: JavaScript Closure - p5.js Tutorial
12:15
The Coding Train
Рет қаралды 126 М.
JavaScript Web Workers Explained
12:52
DevSage
Рет қаралды 100 М.
Learn JavaScript CLOSURES in 10 minutes! 🔒
10:58
Bro Code
Рет қаралды 23 М.
JavaScript Currying function ( method ) explained  Tutorial
12:49
The JS Call Stack Explained In 9 Minutes
9:30
Colt Steele
Рет қаралды 88 М.
ES6 Rest & Spread Explained Simply
9:03
DevSage
Рет қаралды 1,2 М.
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 124 МЛН