This is a good educational step, but as the following tweet points out, it's just a high level approximation of how computer memory actually works. The rabbit hole of computer memory goes significantly deeper, especially when dealing with a language like JavaScript that does GC, and varies a lot with runtime environments.
Thanks for the comment. I fully agree. What is presented is just scratching the surface.
The main objective of the video is to present a model so that a person learning JavaScript at least starts thinking about memory. These models will be very useful once we start talking about objects, copying objects by reference, etc.
6
u/tibbon Mar 02 '21
This is a good educational step, but as the following tweet points out, it's just a high level approximation of how computer memory actually works. The rabbit hole of computer memory goes significantly deeper, especially when dealing with a language like JavaScript that does GC, and varies a lot with runtime environments.
https://twitter.com/David3141593/status/1363455476332126209/photo/1
For the next step (which again, is just one step), I'd read the MDN
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management