Question 7 of 10Pro Only
How do you make a deep copy of an object in JavaScript? What are the limitations of JSON.parse and JSON.stringify for this task?
Sample answer preview
A deep copy creates a new object with copies of all nested properties, unlike a shallow copy which only copies the first level. Shallow copy versus deep copy works as follows.
deep cloneshallow copyJSON.parseJSON.stringifystructuredClonelodash