In JavaScript, when you create a new object and assign it to a variable, the object is stored in memory and the variable points to the memory location where the object is stored.
๐ก Mastering Object Duplication, The Shallow vs Deep Copy in JavaScript ๐
ยท 5 min read