Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyTypeScripttype annotationsSingle-choice MCQ

Given the type annotations below, which line causes a compile error?

let count: number; let name: string; let active: boolean; count = 42; // line A name = `id-${count}`; // line B active = 1; // line C count = "42"; // line D