A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
stdle-64.ts
1enumFruit{Apple='apple'}
2namespaceFruit{exportconstcount=3;}
3console.log(Fruit.Apple,Fruit.count);
Enums
Answer & explanation
Console output
apple 3
Why
TypeScript merges an enum and a namespace of the same name into a single runtime object. The enum contributes Apple="apple"; the namespace contributes the exported const count=3. Both live on Fruit, so the output is "apple 3". This is the canonical way to attach static helpers to an enum.