Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardJavaScriptthis-binding spec edge casesSingle-choice MCQ

A getter accessed through the prototype chain plus a primitive receiver tests how `this` is set when the receiver is a primitive in sloppy vs strict accessors. What does `Number.prototype.describe.call(5)` log here?

Object.defineProperty(Number.prototype, 'describe', { get() { return typeof this; } }); console.log((5).describe); console.log(Number.prototype.__lookupGetter__('describe').call(5));