← Back to archive

Stdle #168 · namespaces · 2026-11-21

What does this TypeScript snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

namespace O { export namespace I { export const z = 7 } }
console.log(O.I.z)
Namespaces
4 attempts left

Answer & explanation