πŸ“Š JavaScript
Q. What will be the output of the following code snippet?
Code:
const obj1 = {first: 20, second: 30, first: 50};
console.log(obj1);
  • (A) {first: 20, second: 30}
  • (B) {first: 50, second: 30}
  • (C) {first: 20, second: 30, first: 50}
  • (D) Syntax Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) {first: 50, second: 30}

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
246
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
91%
Success Rate