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?
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
😅 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. th-cam.com/video/DwU6Q4bCAB0/w-d-xo.html It builds on top of the idea of closures
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.
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
Great explanation, very clear and understandable.
Glad you think so!
I came here after watching your recursion tutorial, which is the best recursion explanation on TH-cam. Glad I found this one as well. Thank you!!
one of the best explanation of closures I've seen. Thanks @DevSage
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?
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
I'm a teacher of UI engineers and this video is awesome...
😅 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. th-cam.com/video/DwU6Q4bCAB0/w-d-xo.html
It builds on top of the idea of closures
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.
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
@DevSage you explain things really well, sir.
Appreciate it. That means I'm accomplishing my mission 🎯💯
Hey bro ! I really wanna know the name of the font you are using here in vscode or the theme
Theme: SynthWave '84
Font: Consolas
Excellent presentation and explanation.
Simple explanation with a understandable example - thank you!
Clear and crispy
DevSage , thanks for sharing this type of content your explain this very easy , Thanks a lot !!!!!
This guy is FREAKING Good!!!
Thank u ❤
This guy should be on Udemy.
So is add10=x and y=the console.log 5?
I’ve been working with JavaScript for years and never have had as good an understanding of closures as I do now
Glad I could help 😎
Great Content And Most Of it Working With C# Also SO Thanks A lot
You are welcome
Is this where stale state comes into play ?
Thanks Man !
const add10=adder(10); is a closure i understand this. is it okay.?
Great video THANKS
Nice explanation
Thanks!
Good
Thanks