Q. What will be the output of the following code snippet?
Code:
const obj1 = {first: 20, second: 30, first: 50};
console.log(obj1);
β
Correct Answer: (B)
{first: 50, second: 30}