Skip to content

Quiz · TypeScript

TypeScript Intermediate Quiz: Advanced Types & Classes

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

Questions
15
Difficulty
Hard
Time
~12min
Per question
30sec

What it covers

TypeScript

A topic in Programming & Coding.

TypeScript quizzes on the type system: annotations and inference, interfaces and unions, generics, utility types, discriminated unions and classes.

Before you start

How it works

  1. 1

    The clock

    You have 30 seconds for each question. When time runs out, the question counts as wrong.

  2. 2

    Your answer

    Your first choice is the one that counts. It is checked straight away, with an explanation where there is one.

  3. 3

    The score

    At the end you see your score and can go back through every question and its answer.

  4. 4

    The XP

    XP scales with your score. Replays earn XP only when you beat your previous best.

From players

Ratings

Play next

All of TypeScript

Programming & Coding · TypeScript

TypeScript Basics Quiz: Types, Interfaces & Variables

A TypeScript quiz for beginners: annotations and inference, literal types, interfaces and aliases, unions, tuples, optional properties and enums.

Easy difficulty15 questions~8 min
+75 XPPlay

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.

Medium difficulty15 questions~10 min
+120 XPPlay