JavaScript Under The Hood [1] - Thread & Call Stack

  Рет қаралды 116,531

Traversy Media

Traversy Media

Жыл бұрын

In this video, we will talk about JavaScript's main thread as well as how the call stack works.
💻 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:
1:02 - Thread Of Execution
2:50 - Call Stack Explanation
3:38 - Slide Example 1
4:34 - Slide Example 2
5:16 - Browser Example 1
7:10 - Browser Example 2

Пікірлер: 131
@nudecode
@nudecode Жыл бұрын
As always amazing content. Simple step by step easy to under stand, no wank about how much you know, which is often irrelevant to what is being taught. Love that it’s about the “behind the scenes” workings. Confident this will be a great series.
@mznunaya
@mznunaya Жыл бұрын
My gawd I love you. You're just amazing. There isn't a single video of yours I haven't watched. Your way of teaching is flawless.
@horic007
@horic007 Жыл бұрын
This series is very useful for people who want an indepth knowledge of Js. Thanks Brad. 🙌🏼
@ahmad-murery
@ahmad-murery Жыл бұрын
Very nice Brad, this will add a new flavor to the channel, the cool thing in callstack tab is that you can click on any stack item to go back and forth in execution time and see how your variables changes and where the error came from in case of any
@abdouazizndiaye7229
@abdouazizndiaye7229 Жыл бұрын
I thought this the most important concept in JavaScript this video come at the right time cause that’s what I’m actually learning thanks Brad ❤️
@732brudder
@732brudder Жыл бұрын
Thank for this. Timing is perfect. I was recently sort of forced into learning this stuff backwards. I had to learn a bit of React, Vue, and Svelte in order to accomplish something I needed for work. While learning these frameworks I was super unfamiliar with Javascript. I had learned it a bit in college, but never any real world experience. These videos are helping a ton actually understand how JavaScript works under the hood. I learned a lot of this for other languages in college, but have been asking this question a ton. Especially in web development, it's really difficult to understand exactly when certain code will/is being executed. Extremely important lesson to learn if you want to know exactly what you are doing. Thanks for this series, keep this going! Edit: Also loving this insight into the dev tools in web browsers. Also a very skimped over part of my journey to web app development. Will need to clean up some code I've hacked together for some projects.
@universecode1101
@universecode1101 Жыл бұрын
This lesson is very important. Learn the basics html css and js. Thanks Brad
@hachikoi-san3901
@hachikoi-san3901 Жыл бұрын
This is beyond basic tho
@Chris-zt4ol
@Chris-zt4ol Жыл бұрын
@@hachikoi-san3901 I think he means fundamentals
@christopheanfry2425
@christopheanfry2425 Жыл бұрын
Awesome serie idea. I think very important to understand deeper how js works. Very interesting and well explained as usual. 💪🏻
@lorenainfanter.3099
@lorenainfanter.3099 6 ай бұрын
Great series! I struggled a little bit with those concepts but you helped me to clarify all. Thank you very much!!
@nickstaresinic9933
@nickstaresinic9933 Жыл бұрын
Very nice, clear explanation of an important (and sometimes confusing) topic -- and in ~9 minutes, too.
@yousoumar
@yousoumar Жыл бұрын
Really interesting series. It's really interesting to know what's happening under the hood. Thanks Brad.
@JigJason93
@JigJason93 Жыл бұрын
Very well explained, I already love this series, thank you for your contribution.
@LewisChapman-ic1lb
@LewisChapman-ic1lb 9 ай бұрын
3:15
@parvati27
@parvati27 Жыл бұрын
Brad is the best teacher in the world, thank you brad 💜
@hamzahmd_
@hamzahmd_ Жыл бұрын
Thanks, Brad for this high-level stuff.
@mahdisalmanizadegan5595
@mahdisalmanizadegan5595 Жыл бұрын
Thank you brad for this amazing series, i wish you all the best possible. more positive energy.
@bojanchurlinov1385
@bojanchurlinov1385 Жыл бұрын
Great job Brad, keep up the great work you are doing 😁
@diegotayro1555
@diegotayro1555 Жыл бұрын
Maybe the best video topic of this channel and youtube regarding coding.
@Adnankhan-bl3mc
@Adnankhan-bl3mc Жыл бұрын
Now this series is gold
@kaloianangelkov4919
@kaloianangelkov4919 Жыл бұрын
I've been waiting for those kind of videos from a long while! Thanks
@PoojaSharma-yn5dp
@PoojaSharma-yn5dp Жыл бұрын
This channel content is unmatched.👌
@DanielSmith-yx6zm
@DanielSmith-yx6zm Жыл бұрын
Great Stuff. Definitely the kind of things I want to learn as a developer.
@tonmoyroy2350
@tonmoyroy2350 Жыл бұрын
Awesome tutorial. Thanks Brad ❤️
@robscherer
@robscherer Жыл бұрын
Pumped for this series!
@Vendavalez
@Vendavalez Жыл бұрын
You’re doing the good work Brad! Thanks!
@codyfingerson743
@codyfingerson743 Жыл бұрын
This is awesome! Thanks Brad! Do you by chance have a crash course on DS & Algorithms? I love your style of teaching, and would love to watch a crash course on that!
@JJ-qy4gf
@JJ-qy4gf Жыл бұрын
I had no idea the source tab is where you can see the call stack! Great video!
@iloveher9527
@iloveher9527 Жыл бұрын
Awesome ❤️ this kind of videos is really important; keep it up 🔥
@dror-krief
@dror-krief Жыл бұрын
I love you brad thank you I started follow you because my teacher told me that you are a great source to learn good tech
@datumcoder
@datumcoder Жыл бұрын
Thank you for the video Brad! It really helps! 😎
@dalyryl
@dalyryl Жыл бұрын
Thanks for this Traversy, this was a very important course despite of rapid changing of JS Libraries and frameworks
@sojuthomas7727
@sojuthomas7727 Жыл бұрын
Thanks Brad.Loved it ❤️
@jmonterojr
@jmonterojr Жыл бұрын
This is great stuff. Thanks Brad!
@dimitrisvain
@dimitrisvain Жыл бұрын
Great series! Thank you!
@BijanProgrammer
@BijanProgrammer Жыл бұрын
Awesome! I really have high hopes for this series.
@stu3131
@stu3131 Жыл бұрын
Outstanding! More deep dives!
@Marjolein_1979
@Marjolein_1979 10 ай бұрын
This is a very clear explanation.
@yodkwtf
@yodkwtf Жыл бұрын
you're awesome. Tons of free valuable content
@muhammadidrees6650
@muhammadidrees6650 Жыл бұрын
loving it Brad.
@rfryanfavour4369
@rfryanfavour4369 Жыл бұрын
Thank you Mr Brad, you are the best
@ismoiljonabduqahhorov5825
@ismoiljonabduqahhorov5825 Жыл бұрын
Thanks Brad you are the best ❤️
@dinaesmaeili1814
@dinaesmaeili1814 Жыл бұрын
It was awesome mate! thanks for such nice course.
@seanpalmer1145
@seanpalmer1145 Жыл бұрын
Great stuff as ever. Much appreciated
@taofeeqomotolani2311
@taofeeqomotolani2311 Жыл бұрын
This is such a great video, I came to watch it after I saw Brad's tweet about a comment he read on probably this video.
@odehadejoh9966
@odehadejoh9966 Жыл бұрын
Well explained Brad.
@richardkirigaya8254
@richardkirigaya8254 Жыл бұрын
Thank you so much for this brad
@seemsas
@seemsas Жыл бұрын
thank you for the series
@willadams6217
@willadams6217 Жыл бұрын
Great explanation and example.
@masroorali9307
@masroorali9307 Жыл бұрын
Amazing Brad!
@yannisstaali3257
@yannisstaali3257 Жыл бұрын
I love this kind of video !!!! Thank you !!
@georgemoraitis1923
@georgemoraitis1923 Жыл бұрын
Amazing information! Thank you very much.
@AnthonyCandaele
@AnthonyCandaele Жыл бұрын
Very good explanation of the call stack. If your updated Javascript course will be as good as this, I'm looking out for it.
@programer9620
@programer9620 Жыл бұрын
Thanks it was really helpful.
@charbelboughazale3994
@charbelboughazale3994 Жыл бұрын
thank you man, you helped me ALOT
@tamlq97
@tamlq97 Жыл бұрын
Thanks sir, this video was the one I am looking for :3
@amingrateful7661
@amingrateful7661 Жыл бұрын
You're just amazing man 👍🏻
@rubanruban5617
@rubanruban5617 Жыл бұрын
Nice Video brad, Thank you
@andrestorres3239
@andrestorres3239 7 ай бұрын
Great!!!
@devanshshah1
@devanshshah1 Жыл бұрын
i learn more from you then mm college and u have prob helped me get a job
@RavenOfLaughter
@RavenOfLaughter Жыл бұрын
Well explained
@josephwong2832
@josephwong2832 Жыл бұрын
Brad Traversy is awesome!
@MartinMasevski
@MartinMasevski Жыл бұрын
So much interesting! Thanks
@moustafamahmoud4948
@moustafamahmoud4948 Жыл бұрын
Great job sir
@hrudayd4217
@hrudayd4217 Жыл бұрын
Waiting for this content from traversymedia, final got
@mouridamine3237
@mouridamine3237 Жыл бұрын
i like this series it's good for interview question
@deejaydev
@deejaydev Жыл бұрын
Thats whats up, thanks for your deditcation and time.
@shishirislam8948
@shishirislam8948 Жыл бұрын
This best time to learn your video..
@vinaypatil8009
@vinaypatil8009 Жыл бұрын
Awesome sir Please make video on javascript Explain everything about javascript
@javascriptes
@javascriptes Жыл бұрын
Awesome stuff
@vijayakumarv2633
@vijayakumarv2633 Жыл бұрын
Good job👍, looking for other videos
@andrewayad
@andrewayad Жыл бұрын
Do you know that I immediately hit that like button as soon as I it appears on your new videos even before the video starts playing?
@Sarvesh_Coder
@Sarvesh_Coder Жыл бұрын
Very important 👏 and nice
@youssefyoutube4536
@youssefyoutube4536 3 ай бұрын
Can you believe i came here from chat gpt 😅 Respect man chatgpt recommended your channel !!!
@jhmesseroux
@jhmesseroux Жыл бұрын
amazing 👌
@mahdikamran8061
@mahdikamran8061 6 ай бұрын
Thank you.
@JagdishAdusumalli
@JagdishAdusumalli Жыл бұрын
This is Gold
@myestery
@myestery Жыл бұрын
Waiting for this all my career
@alefsdev
@alefsdev Жыл бұрын
Thank you!!!!
@lifeisbeautifu1
@lifeisbeautifu1 Жыл бұрын
Thank you
@dimitmoto1716
@dimitmoto1716 Жыл бұрын
Thanks a lot!!!
@scottlittleton5653
@scottlittleton5653 Жыл бұрын
Hey Brad could you possibly cover "web workers" or "worker threads" as a possible way that JS may be used in a multi-threaded way. I have seen it mentioned before but it would be nice to understand better. thanks for the videos
@javadmh7827
@javadmh7827 Жыл бұрын
Awesome 👌
@_Iokanaan_Marusidze_
@_Iokanaan_Marusidze_ Жыл бұрын
Thanks
@subratachatterjee6333
@subratachatterjee6333 Жыл бұрын
Sir, You are awesome and the best to me. I want a full stack web development course from you on udemy platform. As of now I have purchased maximum of your courses on udemy. No question arises about the quality and depth of your courses. I have been eagerly waiting to get a complete full stack web development course from you, Sir.
@azengakevin9599
@azengakevin9599 Жыл бұрын
Amazing
@kunnudev7250
@kunnudev7250 Жыл бұрын
Brother great job please continue awesome videos salute to you plz make videos on c c++ Java oops
@justlife7
@justlife7 Жыл бұрын
Best 👍
@tonyantony1977
@tonyantony1977 Жыл бұрын
amazing
@codedancingwithmilos
@codedancingwithmilos Жыл бұрын
Yes Boss!!!
@nkhan6898
@nkhan6898 Жыл бұрын
8:55 Oh Yess!
@serychristianrenaud
@serychristianrenaud Жыл бұрын
thank
@jamesmay5088
@jamesmay5088 Жыл бұрын
I am first! Thanks for this super content👍👏
@mpb0406
@mpb0406 Жыл бұрын
Great video. Any plans to get into data structures and algorithms in this new series?
@Arabian_Epileptic
@Arabian_Epileptic Жыл бұрын
I have videos on my channel on that topic
@wusaby-ush
@wusaby-ush Жыл бұрын
That’s great
@techaddictdude
@techaddictdude Жыл бұрын
Hi where can I get the presentation slides, great video brad.
@skylench
@skylench Жыл бұрын
It's funny how Brad has to apologize for not being great at certain things when in reality those things couldn't be any better or more comprehensive... Imagine how perfect those things he feels he's good at would actually look. The guy is just a genius
@awuk3468
@awuk3468 Жыл бұрын
My first WTF moment with JS was the async await, if it is synchronous and single threaded why require the await command, I am still not 100% sure but I am presuming that as the only thing I can think of that requires it is the fetch command that it yields to the rest of the execution whilst running in a kind of background worker? Good video, looking forward to more in the series.
@CapeSkill
@CapeSkill Жыл бұрын
The await is more so for promise chaining, ''promise to execute y only when x is back with the result''. Fetch or any other async operations are also provided by web api's and they're handled by event loop in callback queue.
@awuk3468
@awuk3468 Жыл бұрын
@@CapeSkill Ah, ok, makes sense, thanks.
@abdukhamidtolipov6461
@abdukhamidtolipov6461 Жыл бұрын
good
@acrosstundras
@acrosstundras Жыл бұрын
Great videos. But when you say 'everything is executed line by line' is sounds like there is no compilation step, that the instructions for the machine are interpreted straight from the source code. But there is in fact a compilation step before execution. This detail helps explain some things like hoisting.
@pulatoff7
@pulatoff7 Жыл бұрын
Stackoverflow came out of this😁
@PabloGnesutta
@PabloGnesutta Жыл бұрын
Si, could se say that the second example is somewhat more expensive than the first? Because there is more context loaded on the stack at any given time. Or it doesnt work like that?
JavaScript Under The Hood [2] - Execution Context
14:28
Traversy Media
Рет қаралды 74 М.
JavaScript: How It's Made
10:54
Fireship
Рет қаралды 864 М.
Mac & Cheese Donut @patrickzeinali @ChefRush
00:53
albert_cancook
Рет қаралды 205 МЛН
NO NO NO YES! (Fight SANTA CLAUS) #shorts
00:41
PANDA BOI
Рет қаралды 52 МЛН
Are You Too Dumb To Code? A Chat About Imposter Syndrome
7:08
Traversy Media
Рет қаралды 60 М.
JavaScript Higher Order Functions & Arrays
34:56
Traversy Media
Рет қаралды 974 М.
Understanding the V8 JavaScript Engine
10:44
freeCodeCamp Talks
Рет қаралды 85 М.
Looking Under the Hood of JavaScript
6:34
ThePrimeagen
Рет қаралды 173 М.
How Linux Changed My Gaming Experience...
9:23
Michael Horn
Рет қаралды 4,1 М.
How Slow Is JavaScript? | Prime Reacts
15:34
ThePrimeTime
Рет қаралды 164 М.
Performance of JavaScript Garbage Collection | Prime Reacts
26:46
ThePrimeTime
Рет қаралды 68 М.
Phone charger explosion
0:43
_vector_
Рет қаралды 2,4 МЛН
Why spend $10.000 on a flashlight when these are $200🗿
0:12
NIGHTOPERATOR
Рет қаралды 16 МЛН