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

The `new` operator and OrdinaryCallBindThis interact in subtle ways with `super` and constructor return values. In a derived class constructor, when is `this` actually initialized, and what governs it?

class Base { constructor() { this.b = 1; } } class Derived extends Base { constructor() { // accessing this here? super(); this.d = 2; } }