0 votes
in JAVA by

Output of the following javascript program

const object1={
  a: 1,
  b: 2,
  c: 3
};
const obj2= Object.assign({c: 4,d: 5},object1);
console.log(obj2.c,obj2.d);
1. 4,5
2. 3,4
3. 4, undefined
4. None of the above

1 Answer

0 votes
by
Correct answer is : 3,5

Related questions

0 votes
asked May 3, 2021 in JAVA by Robindeniel
0 votes
asked Apr 9, 2021 in JAVA by Robindeniel
...