A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
stdle-101.ts
1classC{readonlytag='a';}
2constc=newC();
3constd=Object.getOwnPropertyDescriptor(c,'tag');
4console.log(d!.writable);
Classes
Answer & explanation
Console output
true
Why
readonly is not the same as a non-writable property descriptor. The compiler emits tag as an ordinary data property with writable: true, and enforces immutability only during type-checking. The descriptor confirms writable is true.