Shallow copy make a copy of data along with it's reference, for example object A has property name, by making a shallow copy to object B, and changes the name property value that will reflect in o...
shallow copy copies the structure of the object, deep copy copies structure as well as data.For example, consider an object called X that references objects A and B. Object B, in turn, references obje...