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

You define an accessor on a prototype and read it through an instance. When the getter runs, what is its `this`, and why does that matter for the typical "store on the instance" pattern?

const proto = { get id() { return this._id; } }; const inst = Object.create(proto, { _id: { value: 42 } }); const val = inst.id;