JavaScript Interview - Q What is the difference between deep copy and shallow copy in JavaScript ?

preview_player
Показать описание
1. FULL JAVASCRIPT INTERVIEW COURSE(with PDF Book)

JavaScript Interview Masterclass: Top 200 Questions & Answer

Coupon code JSINTERVIEWHAPPY applied in below URL– 80% Discount


Don't worry if course not helping you, Udemy has 30 days Free Refund Policy.

2. QUICK REVISION BOOK (PDF format)

50% Discount Applied on above link.

Don't worry if book not helping you, I will return 100% of your money with in 7 days of purchase.

All the best for your interviews.
Рекомендации по теме
Комментарии
Автор

Object.assign({}, person) this will work if we dont have nested objects but where as for nested object we can use

shaiksameer
Автор

instead of Object.assign() can i use spread operator ???
and one more thing sir when i use this method but to change name only the value in copied object is changing why???

sankaranarayanankm
Автор

please explain with arrays also deep copy and shallow copy

shaiksameer
Автор

Functions inside objects are not working in deep copy, can you suggest deep copy with functions also should work

HetvikKarthikeya
join shbcf.ru