← Back to archive

Stdle #122 · modern · 2026-10-06

What does this TypeScript snippet output?

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

const Roles = { Admin: "admin", User: "user" } as const;
const list = Object.entries(Roles).map(([k]) => k);
console.log(list.join("|"));
Modern
4 attempts left

Answer & explanation