Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyTypeScriptunion and literal typesSingle-choice MCQ

Why does the assignment to `dir` fail?

type Direction = "up" | "down"; let move = "up"; const dir: Direction = move;