TypeScript has been increasing in its popularity for the last couple of years. It’s mentioned among the five most promising languages in 2020. Angular, one of the largest frontend frameworks, is using TypeScript.
With Angular 4 being the first major version of Angular that uses TypeScript, it’s quite an easy topic to explain the basics. To illustrate the point, TypeScript has two significant aspects. It uses “programming languages” for defining the structure of the application. They’re different from the “browser languages” like ECMAScript. It offers support for the most popular programming languages including Javascript and TypeScript. It also tries to provide features like type annotations. Types in TypeScript Every line of JavaScript code is either a type declaration or a type annotation. In TypeScript, the “type” of a string is the type name for that string.