© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
J. SimpsonHow JavaScript Works https://doi.org/10.1007/978-1-4842-9738-4_5

5. References, Values, and Memory Management

Jonathon Simpson1  
(1)
Belfast, Antrim, UK
 

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 ...

Get How JavaScript Works: Master the Basics of JavaScript and Modern Web App Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.