What is the value of result after executing the following code?
const object1 = { a: 1, b: 2 };
const object2 = { b: 3, c: 4 };
const result = {...object1, ...object2};
What is the value of result after executing the following code?
const object1 = { a: 1, b: 2 };
const object2 = { b: 3, c: 4 };
const result = {...object1, ...object2};