Beginner → Intermediate 7 lessons · free · no sign-up
TypeScript tutorial Typed JavaScript for real projects.
TypeScript — types for safer, larger JavaScript and React apps. Every lesson shows TypeScript code with what the compiler catches or the program prints, key points, a practice task, a quiz and interview questions.
Start learning TypeScript
Not started
- 7lessons
- 7quick checks
- 14interview Q&As
- 7practice tasks
Syllabus
What you'll learn
Every lesson has a worked example, key points, a quick check, a practice task and interview questions.
- 01TypeScript introductionWhat TypeScript adds to JavaScript, why teams use it and how code is compiled.
- 02Basic types & inferencestring, number, boolean, arrays, tuples, any vs unknown, and letting TypeScript infer types.
- 03Interfaces, type aliases & objectsDescribing object shapes, optional and readonly properties, and interface vs type.
- 04Union types & narrowingValues that can be one of several types, literal types and narrowing with checks.
- 05Typed functions & genericsParameter and return types, optional parameters, function types and reusable generic code.
- 06Utility types & strict modePartial, Pick, Omit, Record, Readonly and the tsconfig settings every project should use.
- 07TypeScript with ReactTyping props, state, events and API data in React components.