A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
stdle-124.ts
1namespaceA{exportconstx=1}
2namespaceA{exportconsty=2}
3console.log(A.x+A.y)
Namespaces
Answer & explanation
Console output
3
Why
TypeScript merges multiple namespace declarations with the same name into one object. The compiler emits an IIFE for each block that augments the same variable, so A ends up holding both x and y. At runtime A.x + A.y is 1 + 2 = 3.