Shallow and Deep copy in JavaScript
Shallow Copy
Shallow copy creates copy of an object. New copy has exact copy of values in original object. New copy refers to same reference as original object refers.
Example:
let obj = {
name: "John",
age: "25"
};
let newObj = obj;
newObj.n...
sririshi.hashnode.dev2 min read