Deep Copy vs. Shallow Copy
Shallow Copy
Definition: A shallow copy creates a new object or array that has the same top-level properties as the original. However, if any properties are references to other objects, only...