How it works...

Typescript has two main parts; one is the Typescript language and its superset of JavaScript. It brings OOP and modern app developing paradigm support to JavaScript.

The other part of Typescript is the Typescript transpiler. The transpiler analyzes and converts Typescript code into its JavaScript equivalent.

After all, the browser can only execute JavaScript code, so Typescript code has to be converted to JavaScript.

Get ASP.NET Core MVC 2.0 Cookbook 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.