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
  1. Introduction to TypeScript
  2. TypeScript vs JavaScript
  3. Turning TypeScript into JavaScript
  4. Your First TypeScript Program
  5. Comments
  6. Variables with let
  7. Constants with const
  8. Naming rules
  9. Setting a Variable's Type
  10. Type Inference
  11. Numbers
  12. Strings
  13. Putting values inside text (template strings)
  14. Booleans
  15. null and undefined
  16. The any type
  17. The unknown Type
  18. Arrays
  19. Tuples
  20. Arithmetic Operators
  21. Assignment Operators
  22. Comparison Operators
  23. Logical Operators
  24. Conditions with if and else
  25. Choosing with switch
  26. Ternary operator
  27. The for loop
  28. The while and do...while loops
  29. Controlling Loops with break and continue
  30. Defining Functions and Returning Values

Intermediate level

30 lessons
  1. Passing values to functions (function parameters)
  2. Optional Parameters
  3. Default Parameters
  4. Rest Parameters
  5. Arrow Functions
  6. Variable Scope
  7. Objects
  8. Object Types
  9. Optional Properties
  10. readonly Properties
  11. Naming Types with type (Type Aliases)
  12. Interfaces
  13. type vs interface
  14. Union types
  15. Literal types: allowing only specific values
  16. Type Narrowing
  17. Type Guards
  18. Discriminated Unions
  19. Combining types (intersection types)
  20. Enums
  21. Describing the shape of functions
  22. Function Overloading
  23. Using Generics
  24. Generic Constraints
  25. Array Methods
  26. Modules, import & export
  27. Working with JSON
  28. Error Handling
  29. Promises
  30. Asynchronous programming with async and await

Advanced level

30 lessons
  1. Fetching data with the Fetch API
  2. Introduction to object-oriented programming
  3. Classes
  4. Class Fields
  5. Methods
  6. The Constructor
  7. Access modifiers
  8. Getters & Setters
  9. readonly Class Members
  10. Static Members
  11. Inheritance
  12. Calling the base class with super
  13. Abstract Classes
  14. Implementing interfaces in classes (implements)
  15. Polymorphism
  16. Generic Classes
  17. Extracting a Type's Keys (keyof)
  18. Creating a type with typeof
  19. Indexed Access Types
  20. Utility types
  21. Changing properties with Partial and Required
  22. Choosing and Removing Properties with Pick and Omit
  23. Creating Objects with Set Keys Using Record
  24. Mapped Types
  25. Conditional types
  26. Template Literal Types
  27. Using as const
  28. Checking type compatibility with satisfies
  29. Decorators
  30. 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.

Learn tech skills easily, for freeGet the app