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

Given this object, what does structuredClone produce for the `area` property?

const rect = { width: 10, height: 5, get area() { return this.width * this.height; } }; const copy = structuredClone(rect); console.log(Object.getOwnPropertyDescriptor(copy, 'area'));