A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
stdle-121.ts
1namespaceP{exportconsta=1}
2namespaceP{exportconstb=2}
3console.log(Object.keys(P).join(','))
Namespaces
Answer & explanation
Console output
a,b
Why
A namespace is just an object built by IIFEs at runtime, and each exported member is assigned as a property. Merged declarations add their properties in source order, so Object.keys(P) is ["a","b"] and joining gives "a,b".