JavaScript Under The Hood [2] - Execution Context

  Рет қаралды 74,376

Traversy Media

Traversy Media

Күн бұрын

In this video, we will talk about execution context and hoisting
💻 My Courses & More
traversymedia.com
💖 Show Support
Patreon: / traversymedia
PayPal: paypal.me/traversymedia
👇 Follow Me On Social Media:
Twitter: / traversymedia
Instagram: / traversymedia
Linkedin: / bradtraversy
Timestamps
0:00 - Intro
0:44 - What Is Execution Context?
1:39 - The 2 Phases
3:32 - Step By Step Examination
6:12 - Examine Creation In Browser
7:32 - Step-Through Execution
8:52 - Hoisting
11:26 - var vs let & const

Пікірлер: 150
@DesignfulDev
@DesignfulDev Жыл бұрын
Wow, that made hoisting so much clearer to me! I had on my mind the "moved-to-the-top" concept, but this makes much more sense. Great series Brad! Thank you for everything!
@giulianocrivelli9272
@giulianocrivelli9272 Жыл бұрын
Same for me! It blew my mind 🤯
@Azrael1793
@Azrael1793 Жыл бұрын
Came here to write the same thing
@Kco86
@Kco86 8 ай бұрын
same same for me all these years, wow!
@johnyepthomi892
@johnyepthomi892 Жыл бұрын
I can’t express how much important it is to look at the call stack when debugging. P.S: Need more of such under the hood videos.
@deejaydev
@deejaydev Жыл бұрын
This is one of the most important topics I didn't care to understand when I first started learning to code... Today It's what I am learning. Thank you, Brad
@nickstaresinic9933
@nickstaresinic9933 Жыл бұрын
"...one of the most important topics I didn't care to understand when I first started..." Exactly my thought, too.
@universecode1101
@universecode1101 Жыл бұрын
this series, takes me back to when I was watching your videos, to understand array methods, and the basics of Js. Often it happens to leave out the theory and go directly to practice.
@Sloth740
@Sloth740 Жыл бұрын
These "Under The Hood" videos are great! The way you go about explaining how they work is tremendously helpful. Thank you!
@pranjalsrivastava1191
@pranjalsrivastava1191 Ай бұрын
Damn good. No one has ever explained in such a good way. This makes me understand things rather than simply learning them.
@saman6199
@saman6199 Жыл бұрын
This series is one of the best series I’ve ever watched, I wish you could make a full series of JS under the hood not just a few parts, thanks for your hard work and dedication Brad.
@davidfrank-oziwo9836
@davidfrank-oziwo9836 Жыл бұрын
WOW!!!!! Can't express how glad I am you're doing this series. I love it so much. I'm learning NodeJS and trust me when I say the concepts are essential and I've looking for something like this. Not necessarily how to code, but under-the-hood concepts give you a better understanding of your code. I could keep re-watching these videos over and over again. Looking forward to more of these. Thanks, man! You're the best! Keep it coming!
@andresndergaard1712
@andresndergaard1712 Жыл бұрын
This was really insightful and I love that you present the "theory" and the follow up with practical examples. Beautiful! 😀
@israilkarud9293
@israilkarud9293 Жыл бұрын
I admire your clarity. This video shines at realistically explaining under the hood concepts. Hoisting explanation is rational and highly practical. Thanks Brad :)
@hnaqvi719
@hnaqvi719 Жыл бұрын
Because of this man and his channel i learned js and react.js and now I got a job with DOD ICE
@knockedgoose4206
@knockedgoose4206 Жыл бұрын
I was doing another course and this part had me stuck. You really helped me understand this quickly. I appreciate what you do giving out content like this for free.
@alextonev4145
@alextonev4145 8 ай бұрын
Man this really made hoisting feel less like its some black magic that js does. Thanks a lot!
@berkaygurcan141
@berkaygurcan141 Жыл бұрын
It's a really great series. You explained the information and topics that you can't find in most places, with great examples. It's really useful.
@DaveCollison
@DaveCollison Жыл бұрын
Best explanation of hoisting and global/block scope I've seen. Thank you.
@YoBarbados
@YoBarbados Жыл бұрын
I agree
@matt_fonto
@matt_fonto 6 ай бұрын
Simply incredible! Very well taught and paced videos. Congratulations, Brad!
@MgelikaXevi
@MgelikaXevi 8 ай бұрын
really good explanation, finally understood what was behind hoisting!
@moustafamahmoud4948
@moustafamahmoud4948 Жыл бұрын
a lot of videos out there are talking on the same concepts, but your videos always have something new
@maihu2464
@maihu2464 4 ай бұрын
bro you made hoisting so much clear.. it really blew my mind
@choppinbrixx4931
@choppinbrixx4931 Жыл бұрын
Great start to the series! I hope you plan to go under the hood with closures; this feels like the perfect series for that. Great refresher for me (and you taught me about let/const are actually hoisted locally). 👍
@archiem6323
@archiem6323 Жыл бұрын
Brad, Thank you for putting out videos for us. I have learned so much and use some of your templates too. Thanks a bunch!🙂🙋🏻‍♀️
@mapbrainnovationsofficial5813
@mapbrainnovationsofficial5813 Жыл бұрын
This is by far the best clarification on 'Hoisting ' thanks for making it really easy to understand
@gregmohr6135
@gregmohr6135 Жыл бұрын
I'm really digging these JS Under the hood vids. Great Work!
@TheDoubleMvp
@TheDoubleMvp 2 ай бұрын
Brilliant explanation. Probably the best and most concise videos on the topic I've seen.
@favouritejome
@favouritejome Жыл бұрын
Great video, Brad; I still learnt something new, even though I thought I knew this topic already. Also, I love that you made use of the browser to drive the explanation home
@RockstahRolln
@RockstahRolln Жыл бұрын
Wow!! This really put things into perspective, regarding Hoisting, for me. Loved the video! Thanks Brad!!
@ebcoutinho
@ebcoutinho 3 ай бұрын
Thank you so much for the content. This is not a simple concept to explain but you did it so well that I was able to understand it like it was easy
@simpleWebDev
@simpleWebDev Жыл бұрын
This video is SO GOOD at explaining this stuff, thanks for it!
@taofeeqomotolani2311
@taofeeqomotolani2311 Жыл бұрын
Short, detailed and well delivered.
@anag2125
@anag2125 3 ай бұрын
As usual, your videos are super helpful and clear. Thank you so much!
@SynTronic.
@SynTronic. 6 ай бұрын
Fall-stack 🤣 You are the best!
@imtanuki4106
@imtanuki4106 Жыл бұрын
wow - first time I've seen a conceptual explanation that integrates scope and hoisting. kudos!
@mayankk2800
@mayankk2800 7 ай бұрын
Legendary explanation.
@yaroslavbukhta6562
@yaroslavbukhta6562 11 ай бұрын
Thank you for the technical look at hoisting. Now it actually makes sense
@rashedinislam4668
@rashedinislam4668 20 күн бұрын
You're a genius man, thanks for explaining in details.
@programer9620
@programer9620 Жыл бұрын
Thank you so much it clears a lot of concept. Will be waiting for your more videos like this.
@vladimirpaziuk4707
@vladimirpaziuk4707 Жыл бұрын
Amazing series of videos. Best what I have seen!
@kisangali8184
@kisangali8184 Жыл бұрын
Brad you're my favorite KZbinr much love from Kenya.
@bshwin
@bshwin Жыл бұрын
Great stuff Brad, very much appreciated. Very insightful.
@albertkipchirchir5799
@albertkipchirchir5799 Жыл бұрын
Clear and just amazing. Thank you brad.
@YoBarbados
@YoBarbados Жыл бұрын
Great explanation - thank you very much for the nuance of the topic as well!
@rougegorge3192
@rougegorge3192 Жыл бұрын
Thank you, under the hood is so interesting !And Well explained ❤
@kleczekr
@kleczekr Жыл бұрын
In the midst of the video I was dead set on asking why you were using var instead of let/const, I'm glad you've explained it. Thanks for the video, it gives much insight into what's going on when a D3 viz is produced (that's just what I'm dealing with on a daily basis, so my natural point of reference).
@burakkepuc
@burakkepuc Жыл бұрын
After this series, nodejs, under the hood please. What is single thread non-blocking async system etc.
@harshmalviya4831
@harshmalviya4831 Жыл бұрын
++
@maximganiev4048
@maximganiev4048 Жыл бұрын
fantastic as usual 👏🏻👏🏻👏🏻 many thanks Brad
@LeCyProductions
@LeCyProductions Жыл бұрын
Wow these area great clarifying episodes. Thank you so much!
@CC-ij3ky
@CC-ij3ky Жыл бұрын
Perfect explanation Brad 🙏 thanks mate
@HuskyHuskell
@HuskyHuskell Жыл бұрын
Very elegant explanation, thank you!
@vahidseyidov
@vahidseyidov 7 ай бұрын
Just WoW, I don't have any other words🙌🏼
@markbarlescu1853
@markbarlescu1853 Жыл бұрын
Truly amazing. Your ability to teach.
@hassaneoutouaya
@hassaneoutouaya Жыл бұрын
Thank you so much ! In my view the best practice of JavaScript about using hoisting goes through coding with strict mode(never use a function or a variable before its initialization). which is logic & makes your code more readable. I encounter this whenever I'm using for example the arrow functions while declaring it as 'const'
@lifeisbeautifu1
@lifeisbeautifu1 Жыл бұрын
Simple and clear. Thank you!
@toanlam8603
@toanlam8603 Жыл бұрын
These videos are great! Please keep it up
@nickstaresinic9933
@nickstaresinic9933 Жыл бұрын
Really super explanation, Brad. (And I finally got an intro into using the Sources tab of Chrome Dev Tools, which is a real plus.) I noted, BTW, that when I wrote getSum() as an arrow function -- instead of as a 'regular' function -- it didn't appear in the Global object; instead, it was in a Script object immediately above Global (and eventually below Local). I haven't dug into that yet, but seems like something else that's important to learn. (EDIT: And no surprise that Brad cleared this up in the final section.)
@thucle4122
@thucle4122 Жыл бұрын
thank you for the really clear explanation!
@Ratchet2022
@Ratchet2022 10 ай бұрын
This is Insanely helpful!!! Thank you sir!
@ktoscos4546
@ktoscos4546 Жыл бұрын
I understand it directly , very good explanation
@alemayehuewunetu9998
@alemayehuewunetu9998 Жыл бұрын
This should be in a playlist
@markoradonjic7
@markoradonjic7 Жыл бұрын
Even though I know what JS code does, I always wanted to know what is actually going on under the hood. Great content!
@nishitagiduturi1270
@nishitagiduturi1270 7 ай бұрын
Hello Brad, var variable lifecycle vs let variable lifecycle chart at 13:38, is not clear and conflicting to previous slide browser example where in creation phase itself let variable x is stored with undefined value, in block scope. Can you please clarify on this one??
@swancompany_inc
@swancompany_inc Жыл бұрын
Hey Brad...been following along with you for a couple years now since I started coding. I'd be lost without your tutorials. Thanks for all your hard work. More Laravel TALL stack videos if you are looking for suggestions.
@oilybrakes
@oilybrakes Жыл бұрын
Good thing I subscribed to you. Already picking the fruits of that decision. 👍
@ridir2912
@ridir2912 Жыл бұрын
I've fallin into the JS engine, Runtime, BrowserWebAPI/nodejsC++API, Eventloop, Call Stack, Microtask-, Macrotask-, Task-, Job-Queue Rabbithole. This Under the Hood videos really help to join some dots together. Thanks Mate & Kind regards !
@yusufjamal269
@yusufjamal269 4 ай бұрын
out of the box🔥 very impressive 👍👍
@TyRector
@TyRector Жыл бұрын
This was super helpful!! Thank you!!
@tjay5644
@tjay5644 Жыл бұрын
Love this series keep it up...
@Mr.Robots
@Mr.Robots Жыл бұрын
this a grate video! Tks from Brazil man!
@geekstudio.
@geekstudio. Жыл бұрын
I dont know how ya do it Trav but ya do it..thanks for the video!
@Darkgx5
@Darkgx5 Жыл бұрын
Love the content brad thanks love to see more of this kind of stuff would it be possible to touch upon computer science topics as-well?
@savannahtechstack8463
@savannahtechstack8463 Жыл бұрын
This video was so useful, thank you
@ulrichmbouna4091
@ulrichmbouna4091 Жыл бұрын
Thanks you so much for this tutorial, i have learned new thinks .
@amingrateful7661
@amingrateful7661 Жыл бұрын
Learning a lot from you. thank you 🙏🏻
@rikilamadrid
@rikilamadrid Жыл бұрын
Great series!
@newbiedb
@newbiedb 8 ай бұрын
Great video
@MsKodus
@MsKodus Жыл бұрын
Really well explained!
@Nahuel_Uboldi
@Nahuel_Uboldi Жыл бұрын
awesome series!
@k.ksharma4457
@k.ksharma4457 Жыл бұрын
awesome explanation❤
@ahmatarnal1018
@ahmatarnal1018 Жыл бұрын
amazing explanation
@bevedel
@bevedel Жыл бұрын
Really helped. Thank you.
@AsToNlele
@AsToNlele Жыл бұрын
Thanks a lot Brad!
@Krazness
@Krazness Жыл бұрын
Dope video. Thanks man
@TheKomaras
@TheKomaras Жыл бұрын
Thank you, this is awesome!
@seddeknadhem5638
@seddeknadhem5638 Жыл бұрын
One of the best, thx!
@hoseinabolhasani
@hoseinabolhasani Жыл бұрын
very very usefull content , please make more such videos thank you so much.😍💡
@FaisalAmin001
@FaisalAmin001 Жыл бұрын
Thank you sir! Please start a series on DS and Algo in Javascript
@m.h.wasimelahi3878
@m.h.wasimelahi3878 6 ай бұрын
Since it is clear that hoisting can be done with let and const also, so plz do make a video on hoisting with let
@heat1486
@heat1486 Жыл бұрын
Great content!
@pawelandrys
@pawelandrys 7 ай бұрын
thanks, greate video
@aristidescruz1414
@aristidescruz1414 Жыл бұрын
I really liked this!!
@JeanDidier
@JeanDidier Жыл бұрын
God bless you Brad
@UniParse
@UniParse Жыл бұрын
cool, I can't wait to next ep
@Norfeldt
@Norfeldt Жыл бұрын
Hoisting can be quite useful when laying out react components. Say you have a ListComponent written as a functional component and then you can write the component items rendered in the list just below and don't worry about the order.
@andriiauziak1178
@andriiauziak1178 Жыл бұрын
Hi Brad, Amaizing videos! Maybe closure also should be it this tutorial.
@mgabitov
@mgabitov Жыл бұрын
One like is not enough for this video. Thanks!
@vlr9999
@vlr9999 Жыл бұрын
I always declare functions above because I was learning programming on "basic" and "pascal") P.S. This lessons very cool!
@arvindk9268
@arvindk9268 Жыл бұрын
Wow this is amazing.
@sureiyyakarnain4324
@sureiyyakarnain4324 Жыл бұрын
Dear Brad, you have already made me a JS addict and I'm not sure what'll will happen to me after this series. Kindly request you to post a video on illustrating the execution of asynchronous functions in JS event loop may with a 'setTimeout' or any other callback function. Doesn't matter how well I know the stuff, I always learn a new thing or correct some of the misunderstandings I have, each time I follow a video of yours (E.g:- Hoisting of 'let' & 'const' variables)
@tanzimchowdhury320
@tanzimchowdhury320 10 ай бұрын
This feels almost illegal to know, so good! Would you suggest a few books for learning advanced JS concepts?
@beckychan5792
@beckychan5792 4 ай бұрын
Thank you!!
@willadams6217
@willadams6217 Жыл бұрын
This is a really promising series.
I Tried Breaking an Unbreakable Wine Glass
00:59
Stokes Twins
Рет қаралды 81 МЛН
NO NO NO YES! (Fight SANTA CLAUS) #shorts
00:41
PANDA BOI
Рет қаралды 19 МЛН
Good People Restore Faith in Humanity: A Heartwarming Act of Kindness on a Bus #shorts
00:32
JavaScript Under The Hood [1] - Thread & Call Stack
9:05
Traversy Media
Рет қаралды 115 М.
JavaScript Under The Hood [5] - JavaScript Engine Overview
12:30
Traversy Media
Рет қаралды 38 М.
How React ACTUALLY works (DEEP DIVE 2023)
12:59
FrontStart
Рет қаралды 42 М.
JavaScript Under The Hood [4] - Memory Storage
12:58
Traversy Media
Рет қаралды 42 М.
What is THIS keyword in JavaScript? - Tutorial for beginners
26:40
Looking Under the Hood of JavaScript
6:34
ThePrimeagen
Рет қаралды 172 М.
JavaScript: How It's Made
10:54
Fireship
Рет қаралды 863 М.
Understand the context in javascript
8:38
Hitesh Choudhary
Рет қаралды 67 М.
JavaScript Prototypal inheritance - Tutorial
15:29
ColorCode
Рет қаралды 64 М.
Broken Flex Repair #technology #mobilerepair
0:55
ideal institute aligarh
Рет қаралды 8 МЛН
iPhone 15 в реальной жизни
20:03
HUDAKOV
Рет қаралды 578 М.
Very Big Sound Mobile
0:47
Tech Official
Рет қаралды 883 М.
У Nokia 3310 появился конкурент
0:36
AndroHack
Рет қаралды 1,4 МЛН