Write Your JavaScript Code Here
Run
Copy Code
const object1 = { a: 11, b: 12, c: 33 }; const object2 = Object.assign({c: 4, d: 5}, object1); console.log(object2.c, object2.d);
Output: