A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
stdle-81.ts
1classA{getx(){return10;}}
2classBextendsA{getx(){returnsuper.x+5;}}
3console.log(newB().x);
Classes
Answer & explanation
Console output
15
Why
super.x reads through the parent`s getter, not a stored property: it invokes A`s `get x` (returning 10), and B`s getter adds 5. Accessor inheritance via super lets a subclass decorate a computed property. The result is 15.