Deep copy vs Shallow copy in Javascript
Prerequisites
Primitive values and Reference values.
Different ways to copy values in Javascript
Using the spread ... operator.
Using the Object.assign() method.
Using the JSON.stringify() and JSON.parse() methods.
Let's look at how we copy objec...
rakshith.hashnode.dev4 min read