A deep dive into how JavaScript handles objects in memory, covering reference assignment, nested objects, shallow cloning with spread syntax, and the subtle gotchas that cause unexpected mutations
Posts tagged with JavaScript
-
-
I used to get confused about when to use a traditional for loop vs forEach. Once I began exploring how these two really work, everything clicked. This is a breakdown of what I learned, how each one behaves and more...