Learn the difference between a Shallow Copy and a Deep Copy in this Advanced Javascript Tutorial. We cover shallow copy vs deep copy, mutable vs immutable and passing values vs references. Pure functions need you to know this foundational knowledge.

Shallow Copy and Deep Copy | Advanced Javascript Tutorial

  • (00:00) Intro
  • (0:24) Javascript data types review
  • (1:03) passing values vs passing references
  • (3:05) mutable vs immutable data
  • (5:52) an impure function
  • (8:20) how to make a shallow copy
  • (14:17) how to shallow freeze an object
  • (16:04) how to make a deep copy
  • (21:43) a pure function
  • (23:45) Review of concepts

#javascript

Shallow Copy and Deep Copy | Advanced JavaScript Tutorial
9.05 GEEK