Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavaScriptgetters and settersSingle-choice MCQ

An accessor property is defined with `Object.defineProperty` and only a `get`. By default, what are its `enumerable` and `configurable` flags?

const o = {}; Object.defineProperty(o, 'k', { get() { return 1; } }); const d = Object.getOwnPropertyDescriptor(o, 'k'); console.log(d.enumerable, d.configurable);