© Mark Clow 2018
Mark ClowAngular 5 Projectshttps://doi.org/10.1007/978-1-4842-3279-8_4

4. TypeScript

Mark Clow1 
(1)
Sandy Springs, Georgia, USA
 

TypeScript is a superset of JavaScript (written by Microsoft) that primarily provides optional static typing, classes, and interfaces. It’s open source and is being developed on GitHub. The compiler is implemented in TypeScript and can work on any JavaScript host.

Being a strict superset of JavaScript means a JavaScript program is also a valid TypeScript program, and a TypeScript program can seamlessly consume JavaScript. TypeScript compiles to compatible JavaScript. TypeScript is quite similar to Java/.NET, with some differences—for example, constructors and interfaces.

You don’t need to download or install ...

Get Angular 5 Projects: Learn to Build Single Page Web Applications Using 70+ Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.