Google News
logo
JavaScript - Interview Questions
Deep vs. shallow object copying in JavaScript.
Deep Coping : This means that all the values of the existing/original variables are copied to a new variable, and thus, disconnected from the existing variables.

Shallow Coping : When commanded for shallow coping, not all the existing variables are disconnected, and some of the values or sub-values are still connected to the original.
Advertisement