Skip to content
Medium-Hard JavaScript & TypeScript Multiple Choice

What is the purpose of TypeScript's 'unknown' type?

— Tests your understanding of this concept.

Answer Options

A Same as 'any'
B Type-safe alternative to 'any' that requires type checking before use
C Represents null values
D Used for error handling

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 20+ more JavaScript & TypeScript questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the JavaScript & TypeScript topic (Programming Languages).

More JavaScript & TypeScript Questions