Это видео недоступно.
Сожалеем об этом.
JavaScript Scope Chains and Closures
HTML-код
- Опубликовано: 1 авг 2024
- NewCircle Instructor, Adam Breindel's goal is for you to understand scopes, scope chains, and closures. He also wants you to be able to easily and quickly explain them to other developers.
Intensive JavaScript and MV* Training from NewCircle: newcircle.com/category/javasc...
www.meetup.com/jsmeetup/
Really one of the best explanations of JS scope and closure I have seen.
大悲咒
Still one of the best explanations of closures after all these years.
Very well explained. I also appreciate that your voice as a presenter was clear and strong. Really helped.
Probably the best explanation of scope and hoisting I've ever seen.
Thank you Adam. We need more wonderful JS teacher like yourself. Please keep publishing your talks!
Thanks! It's been very interesting and first of all really compelling while you watching.
Love the way how this guy conveys the information to the audience.
Nicely framed and good context provided. Thanks for posting.
Dude! This is the best presentation about Javascript I've seen in a while. It comes to prove that when you know what you are talking about you can explain it in simple terms! - Thanks! :-)
Thank you!!! great explanation, I was confused about scope and closures but your presentation clarified my questions and doubts.
Great explanation. Even though I kinda suspected some of this before the video, this video really put everything in it's place. Thank you very much.
Thank you very much for this outstanding presentation. Very clear!
Really one of the best explanations.. loved it..
you are the best teacher i have encountered in my entire life....thank you very much adam... :)
you have not encountered enough teachers then. he did a good job, but far from the best in my opinion.
Excellent Presentation. Thank you.
Great! I understood a bunch of things on scopes chain, closures and hoisting
Great Job! Thank you for making it easier. Subscribed.
Excellent! Just Excellent!
This is such an amazing video!
very interesting presentation, any plan to make one on functions and methods?
Thank you, finally I fond the answer :)
Excellent explanation!
THANKS A LOT.
AHA moments! thanks for this!
Could you please tell how scope chain would look like for "module pattern .." examples. Please
Great video. The only thing that left me confused was in the last few minutes of the video. When you showed that you can see private data using Chrome developer tools (using console.dir) through Function scope tree. Does this mean that anyone can *see* what the private data is even tho they cant do anything with it?
best of the best
Wait, so scope chaining (the black arrows) is only possible due to the [[scope]] member? Don't think he explicitly stated this so could anyone please confirm? Otherwise my question was how do those black arrows know where to point to, etc? Is there some other back-end mechanism? or is it just because of [[scope]]?
It was mentioned that these slides were on speaker deck. Is there a link?
Hi, where can I download these slides. I they very resourceful for reference.
Arindam paul in the audience.....
What is the difference between Lexical Scoping and In-Memory Scope?
Can anybody explain how "let" and "const" will fit into all this ? I mean how block scopes are handled ??
where can I find the notes of this lecture ?
Isn't that local scope also has slot/name of the own declared function (to make recursion work)?
```
> var G = function B() { console.log(B) };
undefined
> G()
VM7249:2 function B() { console.log(B) }
undefined
> B()
VM7292:2 Uncaught ReferenceError: B is not defined(…)
```
while such case may seem like *g* is in outer scope
```
> (function g() { console.log(g) })()
function g() { console.log(g) }
```
Or there is another [[magic]]?
Magically disappears at 53:53
1 person missed the like button :)
great info just too much repetition of "um...", "so um..." really annoying. I did click the "LIKE" button.
it could have been more interesting if the speaker could show more practice examples, theory bores me
Yes, having it fully explain is often better for people who need to learn something new.
Not fast enough get bored
settings->speed->2.0 you're welcome.
This guy heavily takes from Kyle simpson and philip roberts. if youre new to this, check them out they did a far better job at explaining these concepts.
and wow thats in 2014 and JS programmers dont know what and IIFE is? Amateurs detected!
Are you experienced well with Javascript? I would like to ask you a quick question just to clarify things.
i believe so, sure go ahead
Ahmad Bamieh In the video, he showed how he can access private data using console.dir and then look it up in Function scope property. Does this mean that anyone can see any private data that we make using this simple method in Dev tools,even tho they cant manipulate it in any way? I mean it seems to me that its a security flaw for anyone even to see the private data.