Skip to main content

Learn TypeScript

JavaScript with types that catch mistakes early.

TypeScript is JavaScript with types. You describe what a value is meant to be, and the compiler points out mistakes before the program runs.

The editor runs your TypeScript on our server and shows the output and any type errors.

Many large JavaScript projects use TypeScript today, because types make it easier to change code without breaking something else. If you know JavaScript, the first steps are small.

Start here

First program: Write a function that takes two number parameters and returns their sum, then print the result.

There are no TypeScript lessons yet. The compiler is free and needs no account.

Practice

Practice problemsRead a problem, write an answer and run it against the samples.

The practice problems accept JavaScript or Python. TypeScript is JavaScript with types, so an answer in JavaScript is a good first draft.

Read more

Want the full programme with mentorship and placement? See the plans