Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardJavaScriptproperty descriptorsSingle-choice MCQ

What does the marked assignment do here, and why?

'use strict'; const o = {}; Object.defineProperty(o, 'x', { value: 1, writable: false, enumerable: true, configurable: false }); o.x = 2; // <-- this line console.log(o.x);