TypeScript allows you to write JavaScript the way you want it. TypeScript is a typed JavaScript overlay that compiles to plain JavaScript. The popular Angular 2 (or simply Angular) is written in TypeScript. TypeScript can help programmers write object-oriented programs and compile them to JavaScript, both server-side and client-side.