We have already alluded to the fact that variables point to certain references in memory, and we’ve also briefly covered how deep and shallow copies of objects exist. In this chapter, we’ll be going into more depth about how memory allocation actually work. All of the concepts we will discuss in this chapter fall under a broad topic known as “memory management.” Memory management, in simple terms, is how JavaScript allocates data we create to memory.
Introduction
To understand memory management, we ...