JavaScript Under The Hood [4] - Memory Storage

  Рет қаралды 49,969

Traversy Media

Traversy Media

Күн бұрын

Пікірлер: 64
@ngolelawsonmbwoge3647
@ngolelawsonmbwoge3647 Жыл бұрын
I think this is the first time I truly understood, when they say objects are passed by reference, from the diagrams you showed. And visualizing the heap memory storing objects, functions and arrays and stacks storing primitive data types, is just gold! It makes it way clearer to understand! Thank you so much, sir Brad!
@umamaheshmeka1032
@umamaheshmeka1032 2 жыл бұрын
The Voice - which motivates developers to go to any extent to learn !!! I really love your teaching 💝💝💝
@PRAHLADSAHU-pk4fd
@PRAHLADSAHU-pk4fd 2 жыл бұрын
I like the way he admitted he doesn't know about memories much and still gave the relevant info with great explanation.
@vinaypatil8009
@vinaypatil8009 2 жыл бұрын
That heap memory explanation with diagram is on point perfect. Thanks for your hard work sir.
@kosmarjus
@kosmarjus 2 жыл бұрын
Ohhh man this took me so long to figure out. I was so mad why my initial object changed every time I recalculated some values. Thank you for shedding some light on the subject.
@jhmesseroux
@jhmesseroux 2 жыл бұрын
more videos like this , love it Brad , i learned something new
@darkmojojojo
@darkmojojojo 2 жыл бұрын
Keep going with these videos. It's definitely helping with understanding why JS behaves the way it does for me.
@devbrothonath9396
@devbrothonath9396 10 ай бұрын
2nd time hearing about stack and heap and it's set in my mind. This was so simple, it blew me away.
@pablojoyce
@pablojoyce 2 жыл бұрын
This is a great series! Thanks. You mentioned revamping the modern JavaScript from the beginning course. I’d love to know when that is going to happen, Brad. I love your teaching style and almost signed up last week but was put off by the age. Considered other more recent courses but would definitely take yours if updated.
@godfreyndiritu9062
@godfreyndiritu9062 2 жыл бұрын
Imagine all that knowledge in 12 minutes, how much more helpful if it was an hour or so? Thanks Brad
@darkmojojojo
@darkmojojojo 2 жыл бұрын
Personally I like these bite-sized videos. They help me with understanding basic concepts without having too much information thrown at me at the same time.
@Retrofire-47
@Retrofire-47 Жыл бұрын
@@darkmojojojo pots and pans, stranger.
@lathamanoharan642
@lathamanoharan642 2 жыл бұрын
Thanks for this series Brad. It was very helpful for me to understand some of the basics of why javascript works this way
@WendimuSitotaw
@WendimuSitotaw 2 жыл бұрын
I'm really digging this series!
@bevedel
@bevedel 2 жыл бұрын
Waiting for more videos from you. Thank you for this great serie.
@alexiscostoulas
@alexiscostoulas Жыл бұрын
maybe the best and most clear explanation on this topic !!
@elyoaprogrammer
@elyoaprogrammer 2 жыл бұрын
Execellent series..I enjoyed it!..Thanks Brad !
@genrum4803
@genrum4803 2 жыл бұрын
Love this series, very helpful for beginners.
@eillioniscreating
@eillioniscreating Жыл бұрын
Please make more video ! I love your videos.
@ahmad-murery
@ahmad-murery 2 жыл бұрын
7:34 I whish 40 but we'll say 44 😥 so, enjoy it while you're there, Thanks Brad,
@thisweblabvideos
@thisweblabvideos 2 жыл бұрын
Amazing video. Well explained and important. Thanks
@josephwong2832
@josephwong2832 2 жыл бұрын
Wow! Finally I understand it now. Thanks Brad
@bossmohd
@bossmohd Жыл бұрын
Great video, although I came in looking for something else but this was informative. What I was looking for is recommendations for memory management. For example, is it bad to declare variables or should we try to minimize it. For example should I do const result = someFunction() and then return result, or return someFunction(). Is this more efficient? What are the tools that can help us measure performancece in node? Are async/await consuming more memory than sync functions?
@xkwantified
@xkwantified 2 жыл бұрын
Excellent series👍!
@gunarcom
@gunarcom 2 жыл бұрын
This is a strong video. Good work my friend!
@nikhilmandaliya
@nikhilmandaliya Жыл бұрын
Thank you for this series, your explanation makes advance concepts easy to understand. But I have one question, if primitive variables are stored in stack, is this same as call stack? If yes, then that variables should be removed when function completes execution. So how a function can access that variable in terms of closures?
@drippindamnfaucet3309
@drippindamnfaucet3309 2 жыл бұрын
Nice Xplanation!!!!
@mirkafarkasova2425
@mirkafarkasova2425 9 ай бұрын
Great video! Had no idea it works like this. In what case would I use this tho?
@mattkeg
@mattkeg Жыл бұрын
in the first example from 4:35 to 6:47 is the 'stack' the global execution context?
@ScriptRaccoon
@ScriptRaccoon 2 жыл бұрын
Shoutout to Github Copilot who always knew what Brad wanted to type next :-O
@G.Lomidze
@G.Lomidze Жыл бұрын
Thank you for series. Please one question. On 8.17 min which extension create a line on the variable which is not use now? Which extension is this
@rutvijdoshi9664
@rutvijdoshi9664 2 жыл бұрын
Great video. Please create video series on React under the hood.
@sourandbitter3062
@sourandbitter3062 2 жыл бұрын
Love the new intro
@tamboleo
@tamboleo Жыл бұрын
Newby question here, how is he having the values directly on the console without refreshing the code every time? I saw this behavior on Angular but didn't know you could get real time updates on JS as well, is he using an extension or something ?
@moqusi24
@moqusi24 2 жыл бұрын
Thank you for the explanation
@jonp9511
@jonp9511 2 жыл бұрын
Very helpful
@yoshreimi
@yoshreimi 2 жыл бұрын
wow thank you so much for creating this content for free
@DanzzyTechWorld
@DanzzyTechWorld 2 жыл бұрын
This explains mutability well
@josheppinette7381
@josheppinette7381 20 күн бұрын
Primitive values are not stored on the stack. They are stored on the heap. The only exception being small integeres (
@deathangel908
@deathangel908 Жыл бұрын
Is stack can't handle variables of variable size, how comes when you change a string variable it still resides on the same spot in the stack?
@nithinraj342
@nithinraj342 2 жыл бұрын
U r a good teacher. Can u do video on how nestjs project architecture need to be.
@buddhaburrito
@buddhaburrito 2 жыл бұрын
11:10 I wonder how he auto complete those lines? Did he store it somewhere? What vscode extension was it?
@ScriptRaccoon
@ScriptRaccoon 2 жыл бұрын
It's Github Copilot.
@buddhaburrito
@buddhaburrito 2 жыл бұрын
@@ScriptRaccoon Thank you!
@mtxar
@mtxar 2 жыл бұрын
great content dude!!
@thewild123
@thewild123 2 жыл бұрын
Hey Brad, thanks for the tutorial. I wonder if these diagrams help professional developers visualize how memory is occupied in their apps? I don’t really consider myself a professional but I did study memory management and memory allocation strategies by operating systems. I think it’d be better for myself and more advanced developers to study how JavaScript engine allocates memory on a much more lower level.
@nicogarcia7302
@nicogarcia7302 2 жыл бұрын
Great video Brad!! I have a doubt tough, when you you reassign newName, shouldn't it still be in memory and the engine allocates memory for a new string?
@legalcoffee5315
@legalcoffee5315 2 жыл бұрын
So helpful 🎉thanks!
@prudhvichinnam1488
@prudhvichinnam1488 2 жыл бұрын
Do series on react under the hood
@anandstephan6020
@anandstephan6020 2 жыл бұрын
please make more video of javascript core concept
@bhuvandwarasila
@bhuvandwarasila 3 ай бұрын
fire brother
@mahdikamran8061
@mahdikamran8061 Жыл бұрын
Thank you.
@dasuntheekshana3433
@dasuntheekshana3433 Жыл бұрын
nice work thank y0u
@Red_Coder
@Red_Coder Жыл бұрын
Is there course Js under hood
@georgenonis5967
@georgenonis5967 Жыл бұрын
Not sure why but I cant find objects in the snapshot. Great video anyways and great explanation as always
@developersharif
@developersharif 2 жыл бұрын
Love from Bangladesh ♥
@MgelikaXevi
@MgelikaXevi Жыл бұрын
for algo, great series!
@eboum4273
@eboum4273 Жыл бұрын
Thanks
@sujaigorai7752
@sujaigorai7752 2 жыл бұрын
Everything in javascript is stored in heap memory
@k.ksharma4457
@k.ksharma4457 2 жыл бұрын
awesome👍👏
@lilyscarlet2584
@lilyscarlet2584 10 күн бұрын
just use arena allocators in c if you want memory safety. no gc or raii needed. that way you dont have so many independent lifetimes. thats the real problem. all gc does is kick the can down the road.
@najeemfasil5199
@najeemfasil5199 4 ай бұрын
great 😇
@mecreature
@mecreature 2 жыл бұрын
😍😍😍😍😍
@DmitriyMalayevProfile
@DmitriyMalayevProfile 7 ай бұрын
Primitive Types: BeBUNSS
JavaScript Under The Hood [5] - JavaScript Engine Overview
12:30
Traversy Media
Рет қаралды 43 М.
Only The Best Developers Understand How This Works
18:32
Web Dev Simplified
Рет қаралды 115 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
The Dark Matter of AI [Mechanistic Interpretability]
24:09
Welch Labs
Рет қаралды 40 М.
JavaScript Under The Hood [1] - Thread & Call Stack
9:05
Traversy Media
Рет қаралды 134 М.
The Importance of Specialization in Coding
7:13
Traversy Media
Рет қаралды 241 М.
JavaScript Memory Leaks and How To Fix Them
14:58
Software Developer Diaries
Рет қаралды 31 М.
How I Made JavaScript BLAZINGLY FAST
10:10
ThePrimeagen
Рет қаралды 224 М.
Exploring Abandoned Games From Your Childhood
20:00
globert
Рет қаралды 46 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
JavaScript Visualized - Promise Execution
8:42
Lydia Hallie
Рет қаралды 192 М.
JavaScript Higher Order Functions & Arrays
34:56
Traversy Media
Рет қаралды 990 М.