
Programming & Coding · TypeScript
TypeScript Code Quiz: Types, Functions & Generics
A TypeScript generics quiz: function types, optional parameters, generic constraints, keyof, never, as const and the utility types Partial, Pick and Record.
Quiz · TypeScript
A TypeScript quiz for beginners: annotations and inference, literal types, interfaces and aliases, unions, tuples, optional properties and enums.
TypeScript quizzes on the type system: annotations and inference, interfaces and unions, generics, utility types, discriminated unions and classes.
Before you start
You have 15 seconds for each question. When time runs out, the question counts as wrong.
Your first choice is the one that counts. It is checked straight away, with an explanation where there is one.
At the end you see your score and can go back through every question and its answer.
XP scales with your score. Replays earn XP only when you beat your previous best.
From players
Play next

Programming & Coding · TypeScript
A TypeScript generics quiz: function types, optional parameters, generic constraints, keyof, never, as const and the utility types Partial, Pick and Record.

Programming & Coding · TypeScript
Advanced TypeScript types: unknown versus any, discriminated unions, structural typing, readonly, abstract and generic classes, type guards and never.