Question 7/24
advanced
Select one answer

What is the difference between shallow copy and deep copy?

Shallow copy is slower than deep copy
Shallow copy copies references for nested objects, deep copy creates entirely new copies
Deep copy only works on arrays
They are the same thing

Premium Question

Upgrade to unlock this question and 300+ more interview prep MCQs.