HomeTriviaTech & GamesTypeScript
concept🎮 Tech & Games

TypeScript Trivia Questions

How much do you really know about TypeScript? Below are 8 true or false statements. Click each one to reveal the answer and explanation.

1.

TypeScript was created by Microsoft and first released to the public in October 2012.

Click to reveal answer ›

Easy
✓ TRUE

Anders Hejlsberg, lead architect of C#, designed TypeScript; it debuted at the Build conference in 2012.

2.

TypeScript cannot infer the type of a variable from its initial value.

Click to reveal answer ›

Easy
✗ FALSE

TypeScript infers types automatically from values; for example, 'let x = 5' gives x the type 'number' without annotation.

3.

TypeScript can run directly in a browser without any compilation step.

Click to reveal answer ›

Easy
✗ FALSE

Browsers don't understand TypeScript natively; it must be compiled to JavaScript before execution.

4.

TypeScript’s 'unknown' type is safer than 'any' because it forces type checking before use.

Click to reveal answer ›

Medium
✓ TRUE

Unlike 'any', 'unknown' requires explicit type narrowing (e.g., typeof checks) before you can operate on the value, preventing errors.

5.

TypeScript enforces strict static typing at runtime to prevent type errors.

Click to reveal answer ›

Medium
✗ FALSE

TypeScript only checks types at compile time; at runtime, types are erased and it behaves like plain JavaScript.

6.

Using 'any' in TypeScript completely disables type checking for that variable, even at compile time.

Click to reveal answer ›

Medium
✓ TRUE

'any' opts out of type checking entirely, allowing any operations without errors—useful for migration but risky.

7.

TypeScript supports both nominal and structural type systems for class-based types.

Click to reveal answer ›

Hard
✓ TRUE

While mostly structural (duck typing), TypeScript uses nominal typing for enums and classes with private fields.

8.

TypeScript’s type system is Turing-complete, meaning you can encode complex logic in types.

Click to reveal answer ›

Hard
✓ TRUE

Conditional types, template literals, and recursion allow TypeScript types to solve arbitrary computations, like a programming language.

More in Tech & Games

MinecraftTrivia Questions →ChessTrivia Questions →TetrisTrivia Questions →Super MarioTrivia Questions →The Legend of ZeldaTrivia Questions →
View all Tech & Games topics →

Want to test yourself in real time?

Swipe right for True, left for False. New questions every day on PopBluff.

Play PopBluff Free →