


TypeScript adds static types to JavaScript, helping you catch bugs before your code runs and making large projects easier to build and maintain. It's used by teams everywhere, from web front ends to Node.js back ends. This beginner-friendly practice course helps you learn and check TypeScript fundamentals through 100 simple multiple-choice questions. Every question includes a hint and a clear explanation, so you learn as you go.
You will explore 10 topics, 10 questions each, organized into 5 practice tests of 20 questions:
Test 1 - TypeScript Setup & Basic Types: what TypeScript is, setup and the compiler, then basic types and type annotations.
Test 2 - Arrays, Tuples, Enums, Unions & Aliases: arrays, tuples and enums, then union types, literal types and type aliases.
Test 3 - Interfaces, Objects & Functions: interfaces and object types, then functions, parameters and return types.
Test 4 - Classes & Generics: classes, access modifiers and inheritance, then generics and utility types.
Test 5 - Narrowing, Special Types & Real Projects: type narrowing, any, unknown and never, then modules, tsconfig and using TypeScript in real projects.
How to use it: read each question, use the hint if you get stuck, then read the explanation. Try the snippets in the TypeScript Playground. Use Practice mode to learn and Exam mode to test yourself.
Great for beginners who know a little JavaScript, students, and web developers getting started with TypeScript.
Questions are based on modern TypeScript (version 5 and later).
Created by a Senior Salesforce and AI Architect, Salesforce trainer and Dreamforce speaker with 15+ years of enterprise cloud and data experience.