W3docs

es6 Quiz

ES6 Basics

Question 1 of 254%

What is the final value of "obj" in the following example?

const obj = { foo: 1 }; 
obj.bar = 2;
Answers