Shallow copy vs Deep copy in JavaScript
As we differentiate between variables in JavaScript as primitive and non-primitive, similarly when we copy those variables we get a deep copy and a shallow copy respectively.
In general, when you try to copy an existing thing, we expect that the ori...
hinanshi.hashnode.dev4 min read