Shadow Copy
In a shadow copy, the simple value
properties of the source object is copied to the target object. However, for those object
properties and methods of source object, the reference is assigned to the target object, instead of copy.
1 | var Chinese = { |
Deep Copy
In a deep copy, all the properties and methods of the source object is copied to the target object.
1 | var Chinese = { |
Reference
http://www.ruanyifeng.com/blog/2010/05/object-oriented_javascript_inheritance_continued.html