All quizzes
Free quiz · 51 questions in the bank

TypeScript quiz

Test your TypeScript knowledge with a free interactive quiz — 51 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

What does `never` type represent in TypeScript?

In this round
  1. What does `never` type represent in TypeScript?
  2. What does `tsconfig.json` control?
  3. What is `void` type used for in TypeScript?
  4. How do you specify that a function parameter can be either a string or a number?
  5. What is a type guard in TypeScript?
  6. What is the `unknown` type and how does it differ from `any`?
  7. What is the `any` type in TypeScript?
  8. Which TypeScript option enables the strictest type-checking?
  9. What is the purpose of the `as const` assertion?
  10. What does the `Pick` utility type do?
  11. What does the `keyof` operator do in TypeScript?
  12. How do you make a property optional in a TypeScript interface?
Gaps to close?
Read the curated TypeScript notes — core concepts, patterns, interview prep.
TypeScript notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web