Shallow Copy and Deep Copy | Advanced Javascript Tutorial

Описание к видео Shallow Copy and Deep Copy | Advanced Javascript Tutorial

Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap

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.

🚩 Subscribe ➜ https://bit.ly/3nGHmNn

🚀 JavaScript for Beginners: Full Course (8 hours):    • JavaScript Full Course for Beginners ...  

🔗 Javascript Recursion Tutorial:    • JavaScript Recursion Examples | Javas...  

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

📚 References:
MDN data types and data structures: https://developer.mozilla.org/en-US/d...
"Four Ways to Immutability in Javascript": https://dev.to/glebec/four-ways-to-im...
"How to Deep Copy Objects and Arrays in Javascript": https://javascript.plainenglish.io/ho...
"What is the most efficient way to deep clone an object in JavaScript?" https://stackoverflow.com/questions/1...

✅ Follow Me:
Twitter:   / yesdavidgray  
LinkedIn:   / davidagray  
Blog: https://yesdavidgray.com
Reddit:   / daveoneleven  

Was this tutorial about Shallow Copy and Deep Copy in Javascript helpful? If so, please share. Let me know your thoughts in the comments.

#shallow #deep #copy

Комментарии

Информация по комментариям в разработке