Home  >  Article  >  Will typescript become mainstream?

Will typescript become mainstream?

(*-*)浩
(*-*)浩Original
2020-01-07 10:28:426541browse

Will typescript become mainstream?

TypeScript extends JavaScript syntax. Any existing JavaScript program can be run in the TypeScript environment without any changes.

TypeScript just adds some new syntax that follows the ES6 specification to JavaScript, as well as this feature of class-based object-oriented programming. (Recommended learning: phpstorm)

Secondly, the Angular2 framework was released at the end of September 2016. The framework itself is written in TypeScript. Angular framework, as everyone knows, is a very popular framework developed by Google.

In other words, Now the TS language is supported by the two major companies Microsoft and Google. Therefore, we have reason to believe that TS is likely to become the mainstream among front-end development languages ​​in the future.

A superset of JavaScript, a programming language developed by Microsoft, follows the latest ES6 specification

TypeScrip Advantages

Support ES6 specification: Released in 2015, it points out the development direction of client-side scripted speech in the future. Powerful IDE support:

is reflected in three features,

type checking, which allows you to specify types for variables in TS.

Grammar tips.

Refactoring. The development language of Angular2

Building a TypeScript development environment

In fact, it is also necessary to install the TypeScript compiler;

What is a compiler? Why is a compiler needed? ?

The function of the compiler (compiler) is to convert TS code into JS code;

The ES6 specification was released in 2015, but currently all mainstream browsers do not It fully supports ES6 specifications, so things written in ES6 cannot be directly run in the browser.

The above is the detailed content of Will typescript become mainstream?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn