JavaScript: TypeScript Basics
TypeScript adds static typing on top of JavaScript, catching entire categories of bugs before your code ever runs. This quiz tests the fundamentals every TypeScript beginner needs.
Questions cover type annotations, the primitive types, the any type, function signatures with typed parameters and return values, and how the TypeScript compiler (tsc) turns your code into plain JavaScript.
New to TypeScript, or just want to confirm the basics stuck? This quiz covers exactly that.
Start quiz →
Opens in a new tab on Cletica
Sample questions3 of 14 shown
Q1
What is TypeScript?
Q2
Which command is used to compile TypeScript files to JavaScript?
Q3
How do you explicitly declare a variable with a specific type in TypeScript?
What This Quiz Covers
- Type annotations for variables and functions
- Primitive types: string, number, boolean, and more
- The any type and when to avoid it
- Compiling TypeScript to JavaScript with tsc
- Interfaces and the readonly keyword
- Union types
Cletica
Want to create your own quiz?
Build surveys and quizzes, share with anyone, collect responses — free to start.
Try Cletica for free →