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...

Markdown supported · ⌘↵ to post
No responses yet.