Learn TypeScript

Learn TypeScript with hands-on exercises covering types, interfaces, unions, narrowing, generics, utility types, and local tooling.

What you'll learn in this TypeScript course

Learn TypeScript from start to finish in this immersive, hands-on course. You'll build on your JavaScript knowledge while solving real-world type challenges that cover the language's fundamentals and more advanced features.

Chapter List

1
Types
Learn the basic types in TypeScript and the syntax for using them
2
Functions
Learn how to write type-safe functions with TypeScript's robust type system.
3
Unions
Learn how to declare and use union types in TypeScript to allow variables to hold multiple types
4
Arrays
Learn to work with typed arrays in TypeScript, including syntax, generics, unions and type inference
5
Objects
Learn how to work with object types in TypeScript
6
Tuples
Learn how to use tuples in TypeScript
7
Intersections
Learn the basics of intersections in TypeScript
8
Interfaces
Discover the core principles of interfaces in TypeScript
9
Enums
Practice using enums in TypeScript
10
Type Narrowing
Learn how TypeScript uses type narrowing to infer more about your code.
11
Classes
Learn about TypeScript's class features, including class syntax, access modifiers, inheritance, interfaces, and more.
12
Utility Types
Learn about some utility types that can come in handy in TypeScript.
13
Generics
Learn how to create reusable components with type parameters in TypeScript
14
Conditional Types
Learn how to create types that react dynamically to other types using TypeScript's powerful conditional type system.
15
Local Development
Learn how to set up and optimize your TypeScript development environment.

Join 18,707 students in the Learn TypeScript course

Read reviews of their learning experiences

nice one

(5/5)
soliman zazai profile image

soliman zazai

Germany

Although I probably won't remember some of the complicated stuff near the end, it's good to know it exists and I can always look it up! Good course, good "homework".

(5/5)
D B profile image

D B

United States

good

(5/5)
A  profile image

A

United States

Explains the concepts well (i guess!), I'm just a bit confused on the advanced Typescript concepts, since I don't know how I'll apply them into a project yet. I haven't done much frontend work anyways, I guess I'll figure this out over time (hopefully).

(5/5)
NhimSu  profile image

NhimSu

Ho Chi Minh City, Vietnam

I enjoyed the course but cannot say that I like TypeScript, in general. For a language that tries to bring order to chaos, it offers a surprisingly large selection of tools that can easily create more chaos...

(5/5)
Vlad Mocanu profile image

Vlad Mocanu

Brasov, Romania

TypeScript is so cool

(5/5)
Diego Herrera profile image

Diego Herrera

Costa Rica

Excellent course. What sets it apart is honesty: Lane doesn't just show you every TypeScript feature, he tells you which ones to avoid and why (enums, overloads, over-engineered generics). The progression from unions to narrowing to unknown to generics is very well built, and the tests that check your types with @ts-expect-error, not just your runtime output, are a great touch. Coming from years of production TS, I still learned a lot about the "why" behind things I used daily. The last chapter

(5/5)
Osean  profile image

Osean

Lausanne

It's awesome

(5/5)
Felix Angelo profile image

Felix Angelo

Philippines

Pretty cool intro to typescript and it even has a module on dev env and introduces you to vite (even though it is a bit short)

(5/5)
M R profile image

M R

Argentina

or view more reviews

Mediocrity doesn't cut it anymore

The only way to become a great developer is to write a lot of code

Avoid tutorial hell

by writing a ton of code

Stay motivated with

a game-like curriculum

Build portfolio projects

to prove your skills

Delve deeper

into foundational concepts

Learn flexibly online

without interrupting your life

For 1% the price of college

to minimize your financial risk

Frequently asked Questions

Got questions? We've got answers

Yes. TypeScript builds on JavaScript, so you should understand JavaScript fundamentals first. Boot.dev's Learn JavaScript course is the prerequisite for this course.