Deep and Shallow copy in JavaScript
Deep copy and Shallow copy of an object is an important aspects of JavaScript and as a developer, it is useful to understand this concept. Let’s declare an object. let obj1 = {x: 2, y: 3} obj2 = obj1; Shallow Copy: It makes a copy of the reference ...
Nov 8, 20222 min read11