TypeScript Trivia Questions

  • ❓ 120+ questions
  • 🗂️ Programming
  • ✨ 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.

Download on the App StoreGet it on Google Play

Already playing?

Sample TypeScript Questions

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.

    • const
    • let
    • var
    • static
  2. This primitive type represents textual data enclosed in quotes.

    • number
    • string
    • text
    • char
  3. This symbol is used after a variable name to indicate it should have a specific type.

    • equals sign (=)
    • double colon (::)
    • colon (:)
    • arrow (=>)
  4. This type represents both whole numbers and decimal values in TypeScript.

    • number
    • int
    • float
    • decimal
  5. This type can only hold the values 'true' or 'false'.

    • bit
    • binary
    • flag
    • boolean
  6. This file extension indicates a TypeScript source file.

    • .js
    • .ts
    • .tsx
    • .typ
  7. This keyword is used to define a reusable block of code that can be called by name.

    • function
    • method
    • procedure
    • routine
  8. This type represents the absence of any value and is commonly used as a function's return type when it doesn't return anything.

    • nothing
    • void
    • empty

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