Free · No signup
TypeScript Tutorial
Learn TypeScript from the ground up. Every code example on every lesson is real and runnable — the output shown was captured from an actual execution on this site's own compiler, not typed by hand — and you can try each one yourself with one click.
- 1Introduction to TypeScript
- 2Your First TypeScript Program
- 3Basic Types
- 4Arrays and Tuples
- 5Objects and Interfaces
- 6Type Aliases and Union Types
- 7Functions
- 8Arrow Functions
- 9Enums
- 10Classes and Objects
- 11Generics
- 12Conditional Statements (if, else if, else)
- 13for Loops
- 14while Loops
- 15Array Methods: map, filter, and reduce
- 16Exception Handling (try/catch)
- 17Type Narrowing
- 18Modules and the Standard Library
More lessons are added regularly. Want to practice outside the tutorial? Open the TypeScript compiler. Prefer JavaScript? Read the JavaScript tutorial. Prefer Python? Read the Python tutorial. Prefer C? Read the C tutorial. Prefer Hindi? Hindi mein padhein. Prefer Urdu? Roman Urdu mein parhein. ¿Prefieres español? Leer en español. Prefere português? Ler em português.