Это видео недоступно.
Сожалеем об этом.

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/

Комментарии • 49

  • @nooxis
    @nooxis 8 лет назад +21

    Really one of the best explanations of JS scope and closure I have seen.

  • @oohkumar
    @oohkumar 9 месяцев назад

    Still one of the best explanations of closures after all these years.

  • @riclf
    @riclf 8 лет назад +5

    Very well explained. I also appreciate that your voice as a presenter was clear and strong. Really helped.

  • @kozmicluis2552
    @kozmicluis2552 9 лет назад

    Probably the best explanation of scope and hoisting I've ever seen.

  • @awc032
    @awc032 8 лет назад

    Thank you Adam. We need more wonderful JS teacher like yourself. Please keep publishing your talks!

  • @artyompranovich2951
    @artyompranovich2951 6 лет назад

    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.

  • @cupajoesir
    @cupajoesir 7 лет назад

    Nicely framed and good context provided. Thanks for posting.

  • @josealfonso2117
    @josealfonso2117 9 лет назад

    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! :-)

  • @estefaniakiara-elizabeth8538
    @estefaniakiara-elizabeth8538 8 лет назад

    Thank you!!! great explanation, I was confused about scope and closures but your presentation clarified my questions and doubts.

  • @JohnDoe-op2lr
    @JohnDoe-op2lr 8 лет назад +1

    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.

  • @maurocremonini
    @maurocremonini 4 года назад

    Thank you very much for this outstanding presentation. Very clear!

  • @SachinSingh-qe1dg
    @SachinSingh-qe1dg 9 лет назад

    Really one of the best explanations.. loved it..

  • @prashantagarwal3339
    @prashantagarwal3339 8 лет назад

    you are the best teacher i have encountered in my entire life....thank you very much adam... :)

    • @aBamieh
      @aBamieh 8 лет назад

      you have not encountered enough teachers then. he did a good job, but far from the best in my opinion.

  • @santosharakere
    @santosharakere 9 лет назад

    Excellent Presentation. Thank you.

  • @JoffreyKanmogne
    @JoffreyKanmogne 9 лет назад

    Great! I understood a bunch of things on scopes chain, closures and hoisting

  • @Oscar-mp6hw
    @Oscar-mp6hw 8 лет назад

    Great Job! Thank you for making it easier. Subscribed.

  • @MrinmoyRoy1990
    @MrinmoyRoy1990 8 лет назад

    Excellent! Just Excellent!

  • @finally_code
    @finally_code 4 года назад

    This is such an amazing video!

  • @linardzb
    @linardzb 10 лет назад +3

    very interesting presentation, any plan to make one on functions and methods?

  • @stevend1752
    @stevend1752 7 лет назад

    Thank you, finally I fond the answer :)

  • @LeBadman
    @LeBadman 9 лет назад

    Excellent explanation!

  • @HuaJarry
    @HuaJarry 5 лет назад

    THANKS A LOT.

  • @gamingcroctv4523
    @gamingcroctv4523 2 года назад

    AHA moments! thanks for this!

  • @tarunpahuja3443
    @tarunpahuja3443 7 лет назад +1

    Could you please tell how scope chain would look like for "module pattern .." examples. Please

  • @TheHolyReality
    @TheHolyReality 8 лет назад

    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?

  • @MohamedHamed-oz6nq
    @MohamedHamed-oz6nq 4 года назад

    best of the best

  • @itsdannyftw
    @itsdannyftw 7 лет назад

    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]]?

  • @cupajoesir
    @cupajoesir 7 лет назад

    It was mentioned that these slides were on speaker deck. Is there a link?

  • @SmartWizzard
    @SmartWizzard 7 лет назад

    Hi, where can I download these slides. I they very resourceful for reference.

  • @subhashgn1775
    @subhashgn1775 3 года назад +1

    Arindam paul in the audience.....

  • @syedali-le6ii
    @syedali-le6ii 9 лет назад

    What is the difference between Lexical Scoping and In-Memory Scope?

  • @niktwister
    @niktwister 3 года назад

    Can anybody explain how "let" and "const" will fit into all this ? I mean how block scopes are handled ??

  • @nadavgampel6585
    @nadavgampel6585 6 лет назад

    where can I find the notes of this lecture ?

  • @0xO2
    @0xO2 8 лет назад

    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]]?

  • @mikhoq
    @mikhoq 6 лет назад

    Magically disappears at 53:53

  • @syzer3921
    @syzer3921 10 лет назад

    1 person missed the like button :)

  • @MarioCarrizalesArt
    @MarioCarrizalesArt 8 лет назад

    great info just too much repetition of "um...", "so um..." really annoying. I did click the "LIKE" button.

  • @AjinkyaBorade
    @AjinkyaBorade 10 лет назад +3

    it could have been more interesting if the speaker could show more practice examples, theory bores me

    • @wjrasmussen666
      @wjrasmussen666 9 лет назад

      Yes, having it fully explain is often better for people who need to learn something new.

  • @lgiccambodia
    @lgiccambodia 8 лет назад

    Not fast enough get bored

    • @cupajoesir
      @cupajoesir 7 лет назад

      settings->speed->2.0 you're welcome.

  • @aBamieh
    @aBamieh 8 лет назад

    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!

    • @TheHolyReality
      @TheHolyReality 8 лет назад

      Are you experienced well with Javascript? I would like to ask you a quick question just to clarify things.

    • @aBamieh
      @aBamieh 8 лет назад

      i believe so, sure go ahead

    • @TheHolyReality
      @TheHolyReality 8 лет назад

      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.