TypeScript Trivia Questions

  • ❓ 120+ questions
  • 🗂️ Programming
  • 🎚️ Easy to expert
  • ✨ Free to play

Typed superset of JavaScript. Play TypeScript trivia solo to sharpen your knowledge, or challenge a friend head-to-head in Trivia Tango — every question comes with an explanation so you learn as you play. Questions span every level, from easy warm-ups to expert-level stumpers, so there's a real challenge here however much you already know.

Download on the App StoreGet it on Google Play

Already playing?

Sample TypeScript Quiz Questions

A mix of easy, medium and hard — questions run from warm-up to expert, so there's a real challenge at every level. Think you know the answers? Play to find out.

  1. This keyword declares a variable that cannot be reassigned after its initial value is set.

    Difficulty: Easy
    • const
    • let
    • var
    • static
  2. This access modifier makes class members visible only within the class itself.

    Difficulty: Medium
    • protected
    • private
    • internal
    • hidden
  3. This TypeScript technique uses an intersection with an empty object to force type inference.

    Difficulty: Hard
    • type prettifying
    • inference forcing
    • type expansion
    • structure flattening
  4. This primitive type represents textual data enclosed in quotes.

    Difficulty: Easy
    • number
    • string
    • text
    • char
  5. This keyword allows a class to inherit properties and methods from another class.

    Difficulty: Medium
    • inherits
    • implements
    • extends
    • derives
  6. This TypeScript pattern creates a builder that enforces required method calls through changing return types.

    Difficulty: Hard
    • fluent interface
    • method chaining
    • phantom type builder
    • state machine builder
  7. This symbol is used after a variable name to indicate it should have a specific type.

    Difficulty: Easy
    • equals sign (=)
    • double colon (::)
    • colon (:)
    • arrow (=>)
  8. This operator returns the type of a value as a string at runtime.

    Difficulty: Medium
    • instanceof
    • typeof
    • typeis
    • getType

Think You Know TypeScript?

Play a free round in your browser, learn something new with every answer, and challenge your friends to beat your score.

Or get the app

Download on the App StoreGet it on Google Play