What will be the output of the following code snippet?const obj1 = {first: 20, second: 30, first: 50}; console.log(obj1); - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
19 Sep 2022 05:05 PM study24x7 study24x7

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

A

{first:20, second:30}

B

{first:50, second:30}

C

Syntax Error

D

{first:20, second:30, first :50}

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles