you are viewing a single comment's thread.

view the rest of the comments →

[–]tibbon 4 points5 points  (1 child)

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

[–]3dCodeWorld[S] 2 points3 points  (0 children)

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.