2 +1 + "1" js code example
Example: ... operator javascript
let a = { a: 0, b: 1 };
let b = { b: 2, c: 3 };
let c = { ...a, ...b };
console.log(c);
output -> {a: 0, b: 2, c: 3}
let a = { a: 0, b: 1 };
let b = { b: 2, c: 3 };
let c = { ...a, ...b };
console.log(c);
output -> {a: 0, b: 2, c: 3}