JavaScript Visualized - Execution Contexts

Sdílet
Vložit
  • čas přidán 22. 05. 2024
  • Learn how JavaScript handles code execution through execution contexts and environment records, including features like hoisting, the scope chain, and closures!
    - / lydiahallie
    - buymeacoffee.com/lydiahallie
    - / lydiahallie
    - / lydia-hallie
    - / theavocoder
    Timestamps:
    0:00 Intro
    0:15 Execution Context Overview
    1:26 Realm
    1:51 Intrinsics
    2:03 Global Object
    2:50 Global Execution Context
    4:34 Script Walk-through
    9:00 Hoisting
    10:14 Scope Chain
    10:31 Closures
    11:18 Outro

Komentáře • 172

  • @theavocoder
    @theavocoder  Před 15 dny +38

    💡 Execution Contexts and Environment Records may not be the most exciting, but I wanted to have an overview video out there so I can reference back to it when I talk more about hoisting, scope chain, generators... so many more exciting topics! I just realized I'm using some reusable code patterns for my videos now lol. Anyway, hope it's useful!
    📝 ECMA spec: tc39.es/ecma262/#sec-executable-code-and-execution-contexts

  • @aphrodite6647
    @aphrodite6647 Před 2 dny +2

    Now you've suddenly become my favorite tech CZcams channel.
    Thank you very much for this amazing video

  • @james__..
    @james__.. Před 15 dny +101

    You're my most awaited youtuber right now, please do upload more often 🥹

    • @theavocoder
      @theavocoder  Před 15 dny +10

      Thank you!

    • @Harshi-jo6ol
      @Harshi-jo6ol Před 15 dny

      Same bro

    • @rapha5586
      @rapha5586 Před 15 dny

      Same

    • @galactic_dust42
      @galactic_dust42 Před 14 dny +3

      You forget to put "async" at the start of your sentence !

    • @ivankudinov4153
      @ivankudinov4153 Před 12 dny +1

      I agree, but! Upload when you think your content is ready for it, that'd be much better. I still need a couple of days to understand this video only 😂

  • @PostMeridianLyf
    @PostMeridianLyf Před 11 dny +15

    Why are your videos so perfect. No crazy intro video blowing out my ear drums, no paid course in the middle, soft toned voice, consice explanations.
    I'm really not sure if I'm watching an Ai or a really good content creator. Please upload more!

  • @iboy883
    @iboy883 Před 13 dny +9

    This is hands down the best explanation on the Internet ❤

  • @darana1142
    @darana1142 Před 15 dny +29

    Those animations! As someone getting started with motion design I have to commend the effort that goes into these videos.

    • @theavocoder
      @theavocoder  Před 15 dny +13

      Thank you! Keynote + Magic Move goes a long away haha

    • @rashidxd
      @rashidxd Před 15 dny +3

      @@theavocoder thanks for this! I'm amazed that Keynote could produce that smoothness.

    • @reumy
      @reumy Před dnem

      @@theavocoder What are using to put together the actually visuals/graphics?

  • @dadzierichard1220
    @dadzierichard1220 Před 3 dny

    Great and simplified explanation of the execution context and the environment record in Javascript. Thank you for the great Lydia

  • @DominicVictoria
    @DominicVictoria Před 15 dny +3

    Keep up the good work Lydia! It's crazy how these types of tutorial at this quality were only available as paid lessons. I wish you the best!

  • @RedDiamondForLive
    @RedDiamondForLive Před 14 dny +3

    Great video! Always great to see these deep dives as nobody would really ever need to go that low level for their day to day job, but it is good to know, you only missed the sum call in your console.log at 10:08!

  • @davitgrigoryan3858
    @davitgrigoryan3858 Před 9 dny +2

    You are the best, thank you for providing specification-specific and not 'Romantic' info.

  • @gaiusSatyr
    @gaiusSatyr Před 9 dny

    You have been addressing all the topics that I was in doubt about! Bless you.

  • @Vidtricks
    @Vidtricks Před 10 dny

    I just think about the effort you are in these things, the design, the animation just ♥️ it.

  • @toomanyarguments
    @toomanyarguments Před 14 dny

    Lydia, you're a really good tutor. Appreciate for all your amazing works!

  • @abdelrahmankhallaf7982

    Lydia, I truly adore you and the topics you discuss. I've learned so much from you. Thank you immensely ♥♥♥

  • @aliben123
    @aliben123 Před 15 dny +1

    I'm so surprised that such content exists. WHAT THE HELL, this is too good to be free.
    the amount of time that was invested in making this video. and the result are extremly clear and easy to understand. Thank you, PLEASE UPLOAD MORE.
    remarks: no freaking remarks, the voice is TOO clear, the visuals are TOO smooth and the explaination is TOO good.

  • @evanlondono2213
    @evanlondono2213 Před 15 dny +3

    Thank you from someone that needs to understand something in and out before moving forward to the next thing .

  • @mayankrupareliya777
    @mayankrupareliya777 Před 15 dny +1

    You have an awesome teaching and presentation skill. Love your content.

  • @Marhaenism1930
    @Marhaenism1930 Před 15 dny +1

    glad to see a new one was uploaded.. as usual lovely presentation

  • @mariyandamyanov
    @mariyandamyanov Před 15 dny

    I’m loving the content and the visualisations. The teaching method is very helpful. Can’t wait to see more in the future ❤❤

  • @hartye
    @hartye Před 3 hodinami

    Love your videos! You explain so well and the visuals helps a lot! ❤

  • @_acky
    @_acky Před 15 dny

    This visualization is amazing ! Great video and explanation 😊

  • @marlo3898
    @marlo3898 Před 15 dny

    As everyone already said, your illustrations are so good, I've recently had to debug a promise and I had your EventLoop illustration engraved in my mind which helped a lot thanks!

  • @petar567
    @petar567 Před 15 dny

    This channel is amazing. Thanks for your detailed explanation. 🙌

  • @manuelquiroga8022
    @manuelquiroga8022 Před 15 dny

    Amazing, you're a very gifted explainer

  • @johnodwyer5938
    @johnodwyer5938 Před 15 dny

    Great video. Really good explanation and those animations really make everything easy to understand. 👍

  • @AR7editing
    @AR7editing Před 15 dny

    Nice content Lydia, you're killing it!!

  • @abdiraqiibmohummed9781

    I watched the doc on you long time ago , and I followed your path on becoming an engineer , now I’m 2 years in and loving it 😁

  • @andresrodriguez4585
    @andresrodriguez4585 Před 15 dny

    Gracias Lydia ❤ por tus enseñanzas he aprendido mucho, saludos desde Colombia

  • @SyedzainAlishah-co9nq
    @SyedzainAlishah-co9nq Před 15 dny

    Your explanation is very good and deep dive also I have never found someone who explains like this.

  • @aamiramin6112
    @aamiramin6112 Před 12 dny

    Awesome. Proper details animation, hard work thanks alot for sharing such a valuable content

  • @DebopriyoBasu
    @DebopriyoBasu Před 15 dny

    Your github repo is very useful for JS output based questions. Keep posting such videos on JS!

  • @dixztube
    @dixztube Před 9 dny

    Finally some decent js content that goes a little deeper. Excellent video

  • @TheUnknownFactor
    @TheUnknownFactor Před 12 dny

    I kind of want you to explain all the super low level things- these are so good!

  • @eliav3
    @eliav3 Před 11 dny

    Damn! What a great explanation! I thought I was senior fullstack developer until I saw this video and understood how much I did not knew

  • @jcaviedesc
    @jcaviedesc Před 15 dny

    creo que soy una persona que aprende mucho mejor cuando ve los conceptos o una representacion grafica y valoro mucho tu contendio gran trabajo. Estare esperando los proximos videos de hosting, scope... gracias
    I am a person who learns a lot when I see the graphical representation of the concepts. great job!!!!! I look forward to the next videos on hosting, scope....
    Thanks

  • @murtza.rehman
    @murtza.rehman Před 11 dny

    You have visualized it in the best way possible and even having written quite a lot of js, it became overwhelming for me. Therefore the takeaway from this is that It does what it does, despite the need to know, how it does it. It also leaves me wanting to use Keynote like you have. Thanks so much.

  • @ZergD
    @ZergD Před 7 dny

    She IS BACK ! No way!!! hahaha Thank you so much!!

  • @khanfaizan05
    @khanfaizan05 Před 14 dny

    Great stuff.. nicely explained.
    Thank you so much .😊
    Keep up the good work 👍👍👍

  • @walid4839
    @walid4839 Před 10 dny

    The best way of explanation on youtube

  • @buenobars3378
    @buenobars3378 Před 15 dny +1

    I have learned so much from your channel. You're doing god's work. Look forward to more!

  • @binh1298ify
    @binh1298ify Před 15 dny

    Thanks, I sent this video to all my colleagues

  • @mirjalol49
    @mirjalol49 Před 15 dny

    One of the waited video. U are back

  • @msahu2595
    @msahu2595 Před 7 dny

    Truly great video ♥ made my day.

  • @isakdahlstrom
    @isakdahlstrom Před 15 dny

    Passive learning by having your videos on my second monitor 😁

  • @n-julkushwaha2827
    @n-julkushwaha2827 Před 15 dny

    You are on another level... Waiting for more videos...

  • @omarouzzin4993
    @omarouzzin4993 Před 9 dny

    No one can keep up with this work, keep going ❤

  • @stardrake691
    @stardrake691 Před 9 dny

    I’ve never imagined that there is still some room for youtube tutorials, but your work is truly exceptional and stands out from the rest.
    I came from the instagram page, and even though I know all of these concepts, I’ve subscribed immediately, and will recommend your channel for JavaScript developers.
    I’ve got a question on how you make these presentations.
    Do you record saying the script then making animations based on that? Or are the presentations ready prior to recording and you iterate though the slides?

  • @reinaldousadani1075

    It's hard to believe you made this using keynote, it's awesome! I'd watch for a video about tips and tricks (not a full tutorial) about Apple Keynote to be honest.

  • @user-ib5yv8yg3h
    @user-ib5yv8yg3h Před 15 dny

    omg thanks a lot , literally you are my sunshine

  • @sourabhjana1278
    @sourabhjana1278 Před 15 dny

    So deep, so simple just feel like a wow! 😮❤

  • @PaulAllsopp
    @PaulAllsopp Před 15 dny

    I love your videos. I hear from people almost daily that call themselves JavaScript developers, yet the first thing they do when starting a project is reach for a framework. I've questioned some of them on JS mechanics and they really don't have a clue outside of the context of the framework they use.
    JavaScript is awesome and should be taught in schools, at a fundamental level: web APIs, components, integrations (native and external). We don't need no stinking frameworks! ;0) Thanks.

  • @arcy2056
    @arcy2056 Před 15 dny

    you are the best Lydia 🤩

  • @fhorray
    @fhorray Před 15 dny

    yes, I was waiting a new video!

  • @anonymousdesu5335
    @anonymousdesu5335 Před 15 dny

    bruh wtf, why is this so good ?❤

  • @mr.shredder5430
    @mr.shredder5430 Před 15 dny

    great tutorial, i learn so much😘

  • @SummerSC2
    @SummerSC2 Před 15 dny

    Great content ! Woud love a video about the cargabe collector from you !

  • @oblivionzen
    @oblivionzen Před 3 dny

    Great stuff, thanks!

  • @HarpreetSingh-ll1hq
    @HarpreetSingh-ll1hq Před 5 dny

    @10:11, line 1 should be console.log(sum(1, 2)). I am subscribing to your channel. These explanations are great.

  • @rea_kr
    @rea_kr Před 15 dny

    JavaScript에서 가장 중요한 것이 Execution Context라고 들었습니다. 영상 잘 보겠습니다!

  • @TechnoTube001
    @TechnoTube001 Před 15 dny

    Just 30 seconds into video and it is lit 🔥

  • @Henrique01010
    @Henrique01010 Před 15 dny

    I will need to watch a couple more times to fully understand this one lol. But great video as always, love the visual animations

  • @ajayadav09
    @ajayadav09 Před 15 dny +2

    Appreciate all the hardwork you put in the videos

  • @trongvinhnguyen6366
    @trongvinhnguyen6366 Před 13 dny

    Hard to understand at first but very clearly after that.
    These kind of concepts are too hard to understand in texts.
    Thank you for provide visualization for hard concepts.

  • @user-ml8rz2js9m
    @user-ml8rz2js9m Před 15 dny

    super amazing! thank you

  • @vivekanand5900
    @vivekanand5900 Před 15 dny

    Nice explanation ❤

  • @developersteve1658
    @developersteve1658 Před 15 dny

    This is amazingly well done. Something I'd love to see would be how to view some of this stuff ourselves.
    E.g. parse through the call stack in Chrome dev tools.

  • @kwesigotit2322
    @kwesigotit2322 Před 12 dny

    Kendrick Lamar, Frank Ocean and Lydia Haillie are on my watchlist - great work here!

  • @MR.dev7751
    @MR.dev7751 Před 15 dny

    Finally The wait is over 💖💖💖💖

  • @marketnetpress8087
    @marketnetpress8087 Před 12 dny

    Waited long time for your video. I would really really appreciate if would add more use cases for this video.

  • @guicercal
    @guicercal Před 5 dny

    amazing video! i just became a subscriber

  • @miguel.gisbert
    @miguel.gisbert Před 14 dny

    I would love to understand everything you beautifully explained 😅😍

  • @LionhartPsychology
    @LionhartPsychology Před 12 dny

    Nice work

  • @tuanbipa
    @tuanbipa Před 13 dny

    Great, love it

  • @HARUN-AKSU
    @HARUN-AKSU Před 15 dny +1

    Quality is important than quantity. Focus to make better videos not more. Of course try to make more videos but make them like this quality. I like your videos. Keep going Lydia

  • @FatNonsense
    @FatNonsense Před 15 dny

    Yes, new video!!!

  • @harri00413
    @harri00413 Před 12 dny

    Thank you

  • @farrukh.
    @farrukh. Před 15 dny

    Another amazing tutorial from amazing tutor. Can you please tell what tool do you use Lydia to create animations / presentation?

  • @CrusaderMen
    @CrusaderMen Před 15 dny

    Thank you!

  • @Luisllaboj19
    @Luisllaboj19 Před 13 dny

    I just wanna know where does she pull all this knowledge from :O This series of videos is so good :D

  • @Geuni620
    @Geuni620 Před 15 dny

    awesome!!!🙏

  • @alternate_fantasy
    @alternate_fantasy Před 14 dny

    A definition of how I like how good her voice is but how complicated the demonstration is

  • @tasakku
    @tasakku Před 7 dny

    This is really deep stuff

  • @modolief
    @modolief Před 15 dny

    Liked before watching.

  • @dontquitnoob1347
    @dontquitnoob1347 Před 5 dny

    Great content. Subscribed hopefully you can make more videos :D

  • @jeevakannan_u
    @jeevakannan_u Před 8 dny

    Thanks

  • @jonathanromero3034
    @jonathanromero3034 Před 15 dny

    saludos desde colombia hermosa, me encanta como explicas el funcionamiento de estas arquitecturas, me gustaria que hicieras un video explicando como funcionan los for while y do while , muchas gracias por ensenharnos.

  • @dzienisz
    @dzienisz Před 10 dny

    I wonder how you create those videos! They are wonderful!

  • @FrontTech-qu3pe
    @FrontTech-qu3pe Před 15 dny

    What is the tool you're using for editing/animations?
    Amazingly done 👏🏼👏🏼

  • @jeetmajumdar7588
    @jeetmajumdar7588 Před 14 dny

    Plz upload more frequently plz 🙏

  • @amulpatel
    @amulpatel Před 15 dny

    for those of us that are visual. Your content is incredible. I hope to see more. ty

  • @mahmoudchebbani4807
    @mahmoudchebbani4807 Před 15 dny

    Just keep going! ❤

  • @DJerdos1
    @DJerdos1 Před 14 dny

    Thank you, very nice explanation.
    There is a small mistake at 10:09, it should be:
    console.log(sum(1,2));
    instead of:
    consol.log(1,2);

  • @ghosting-cm7zf
    @ghosting-cm7zf Před 6 dny

    I'm in love now

  • @BR-lx7py
    @BR-lx7py Před 15 dny +2

    Really cool video. You didn't really define hoisting, so for those who also had to look it up: it is a behavior in JavaScript where variable and function declarations (but not initialization) are moved to the top of their containing scope during the compilation phase. I am still curious why "var"-s are hoisted, but not "const" and "let"? Is this for backward compatibility with really old JS?

    • @AhmadRaza-uo8ze
      @AhmadRaza-uo8ze Před 12 dny

      Let me explain.
      Var variables are indeed hoisted, but if you try to access them before in the code where they are declared then you get undefined. The reason why const and let are not hoisted because it was introduced in ES6 so it was a great opportunity to make the language better since getting undefined instead of an error when trying to access the variable before its initialization creates confusion. Now they didnt made the var un-hoisted becuase it would break existing code that depends on this functionality.

  • @Oxygen.O2
    @Oxygen.O2 Před 15 dny

    automatic like, thanks

  • @rnparks
    @rnparks Před 15 dny +1

    Make a video of how you make your slides. Awesome!

  • @aleksandarbrcic2521
    @aleksandarbrcic2521 Před 15 dny +3

    And you deduced all of this from the ECMAScript specs?

  • @aenguswright7336
    @aenguswright7336 Před 15 dny

    For all the hate JS gets, its a surprisingly powerful, expressive and elegant language, as I think this talk demonstrates very well.

  • @maksimteplyy1404
    @maksimteplyy1404 Před 20 hodinami

    Visual part of video is impressive, I'm waiting for a new topics

  • @codeSurvivor
    @codeSurvivor Před 15 dny

    Great video! Also liked the other 2 ones a lot, thanks! I have a question, I didn't understand the difference between the intrinsics and Global Object Spec properties, could you clarify that?