← Back to archive

Stdle #99 · namespaces · 2026-09-13

What does this TypeScript snippet output?

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

namespace S {
function helper() { return 4 }
export function run() { return helper() + 1 }
}
console.log(S.run())
Namespaces
4 attempts left

Answer & explanation