A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
stdle-163.ts
1typePt={x:number};
2classCimplementsPt{x=5;}
3console.log(Object.keys(newC()).join(','));
Classes
Answer & explanation
Console output
x
Why
A class may implement an object type alias just like an interface, but both are compile-time-only and emit no code. Only the explicitly declared field x becomes an own property, so Object.keys returns x.