Skip to main content
PProfileMatch

TypeScript · TypeScript Interfaces, Type Aliases and Union Types

Question 1 of 5

What does the compiler say about the last line?

interface Ticket { id: number; note?: string }
declare const t: Ticket;
const n: string = t.note;

Tip: press 1-4 to answer, Enter to continue. Finish the quiz to bank your XP.