Programming Languages
Learn TypeScript
90 short lessons with interactive exercises. You start from zero and move from beginner to advanced.
- 90 lessons
- 3 levels
- Arabic & English
- Start free
What you will learn
- Add clear static types to JavaScript code
- Model data with functions, interfaces, unions and advanced types
- Organize applications with modules, generics and utility types
- Build safer, more maintainable object-oriented and asynchronous code
About this course
A complete TypeScript course, from zero to pro: types, variables and functions, then interfaces, advanced types, modules and asynchronous programming, all the way to object-oriented programming, utility types and decorators. A powerful language built on JavaScript, with static types.
Skills
- Web Development
- User Interfaces
Lessons
Every lesson is short, and the exercises after it lock in what you learned.
Beginner level
30 lessons
- Introduction to TypeScript
- TypeScript vs JavaScript
- Turning TypeScript into JavaScript
- Your First TypeScript Program
- Comments
- Variables with let
- Constants with const
- Naming rules
- Setting a Variable's Type
- Type Inference
- Numbers
- Strings
- Putting values inside text (template strings)
- Booleans
- null and undefined
- The any type
- The unknown Type
- Arrays
- Tuples
- Arithmetic Operators
- Assignment Operators
- Comparison Operators
- Logical Operators
- Conditions with if and else
- Choosing with switch
- Ternary operator
- The for loop
- The while and do...while loops
- Controlling Loops with break and continue
- Defining Functions and Returning Values
Intermediate level
30 lessons
- Passing values to functions (function parameters)
- Optional Parameters
- Default Parameters
- Rest Parameters
- Arrow Functions
- Variable Scope
- Objects
- Object Types
- Optional Properties
- readonly Properties
- Naming Types with type (Type Aliases)
- Interfaces
- type vs interface
- Union types
- Literal types: allowing only specific values
- Type Narrowing
- Type Guards
- Discriminated Unions
- Combining types (intersection types)
- Enums
- Describing the shape of functions
- Function Overloading
- Using Generics
- Generic Constraints
- Array Methods
- Modules, import & export
- Working with JSON
- Error Handling
- Promises
- Asynchronous programming with async and await
Advanced level
30 lessons
- Fetching data with the Fetch API
- Introduction to object-oriented programming
- Classes
- Class Fields
- Methods
- The Constructor
- Access modifiers
- Getters & Setters
- readonly Class Members
- Static Members
- Inheritance
- Calling the base class with super
- Abstract Classes
- Implementing interfaces in classes (implements)
- Polymorphism
- Generic Classes
- Extracting a Type's Keys (keyof)
- Creating a type with typeof
- Indexed Access Types
- Utility types
- Changing properties with Partial and Required
- Choosing and Removing Properties with Pick and Omit
- Creating Objects with Set Keys Using Record
- Mapped Types
- Conditional types
- Template Literal Types
- Using as const
- Checking type compatibility with satisfies
- Decorators
- Compiler Options & Strict Mode
Start your first lesson today
Get the Lammah app and pick “Learn TypeScript” from the courses. Each lesson takes a few minutes, and you can start free.






