Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the intricacies of shallow and deep copying in this advanced JavaScript tutorial. Dive into the fundamental concepts of data types, value passing versus reference passing, and mutable versus immutable data. Learn how to create shallow copies, implement shallow freezing of objects, and perform deep copying. Understand the differences between pure and impure functions, and how they relate to data manipulation. Gain essential knowledge for working with complex data structures and writing more efficient, bug-free code. By the end of this comprehensive guide, master the techniques necessary for handling data immutability and references in JavaScript, crucial skills for developing robust and maintainable applications.
Syllabus
Intro
Javascript data types review
passing values vs passing references
mutable vs immutable data
an impure function
how to make a shallow copy
how to shallow freeze an object
how to make a deep copy
a pure function
Review of concepts
Taught by
Dave Gray