What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-22 17:12:14
shallow copy vs deep copy js
// The '=' operator in javascript can serve the purpose of shallow vs // deep copy. // The '=' operator in javascript will assign deep copy to primitive // data types. For example: let a = 10; let b = a; b = 4; console.log(a); // Output: 10 console.log(... Add solution -
Javascript 2021-09-08 13:32:03
javascript '=' operator shallow copy or deep copy
// The '=' operator in javascript can serve the purpose of shallow vs // deep copy. // The '=' operator in javascript will assign deep copy to primitive // data types. For example: let a = 10; let b = a; b = 4; console.log(a); // Output: 10 console.log(... Add solution