- 1

My answer is right but it shows incorrect answer.

const obj1 = { a: 0, b: 2, c: 4 }; const obj2 = Object.assign({c: 5, d: 6}, obj1); console.log(obj2.c, obj2.d); It says to enter the output of this js code and it is 4 6 But whenever i enter the answer, it says incorrect. I'm on ES6 object of javascript course

1st Jul 2021, 3:51 PM
Abi Shrestha
1 ответ
0
The answer is 46 not 4 6
1st Jul 2021, 4:00 PM
Kashyap Kumar
Kashyap Kumar - avatar