A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
stdle-89.ts
1classC{
2staticlabel='C';
3statictag='';
4static{this.tag=this.label+'!';}
5}
6console.log(C.tag);
Classes
Answer & explanation
Console output
C!
Why
Within a static block `this` is bound to the class constructor, so `this.label` reads the static field declared earlier in the same initialization pass. The block runs after label is set, producing "C!". Static blocks are the idiomatic place for static state that needs imperative logic.