TypeScript · Junior · Question 1 of 75

What is TypeScript?

Explanation

Any valid JS is almost always valid TS. Types are checked at compile time and then erased: plain JavaScript runs at runtime, and there are no type checks there. That's why external data (APIs, forms) is still validated at runtime - e.g. with Zod.

Further reading

Problem with a question

TypeScript · Junior · question 1

Test yourself

Take the TypeScript · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz