Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavaScriptstructuredCloneSingle-choice MCQ

An object has an accessor (getter) property. After running it through structuredClone, what does the corresponding property on the clone look like?

const o = {}; Object.defineProperty(o, 'g', { get() { return 5; }, enumerable: true, configurable: true }); const clone = structuredClone(o); console.log(Object.getOwnPropertyDescriptor(clone, 'g'));