TypeScript Tutorial

TypeScript Tutorial

TypeScript lets you write JavaScript the way you really want to. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. TypeScript is pure object oriented with classes, interfaces and statically typed like C# or Java. The popular JavaScript framework Angular 2.0 is written in TypeScript. Mastering TypeScript can help programmers to write object-oriented programs and have them compiled to JavaScript, both on server side and client side.


Programmers coming from Object Oriented world will find it easy to use TypeScript. With the knowledge of TypeScript, they can build web applications much faster, as TypeScript has good tooling support.


As a reader of this tutorial, you should have a good understanding of OOP concepts and basic JavaScript, to make the most of this tutorial.

Compile/Execute TypeScript Programs

For most of the examples given in this tutorial you will find Try it option, so just make use of it and enjoy your learning.

Try following example using Try it option available at the top right corner of the below sample code box:

var message:string = "Hello World" 

On compiling, it will generate following JavaScript code.

//Generated by typescript 1.8.10
var message = "Hello World";

Useful Video Courses


Angular Essentials - Admin App, Typescript, Docker, c3.js

45 Lectures 4 hours

Antonio Papa


NestJs: Modern ways to build APIs with Typescript and NestJs

41 Lectures 7 hours

Haider Malik


Master Typescript : Learn Typescript from scratch

60 Lectures 2.5 hours



Three.js and TypeScript

77 Lectures 8 hours

Sean Bradley


TypeScript from Scratch: Go from zero to hero in TypeScript

77 Lectures 3.5 hours



Advanced TypeScript: Generic Search, Sorting and Filtering

19 Lectures 3 hours

Christopher Frewin