- Switching to Angular(Third Edition)
- Minko Gechev
- 265字
- 2021-07-02 15:23:36
There's even more to TypeScript
TypeScript by itself has a number of other benefits:
- It is a superset of JavaScript: All JavaScript programs (for example, ES5 and ES2015) are already valid TypeScript ones. In essence, you have already been writing TypeScript code. Since it is based on the latest version of the ECMAScript standard, it allows us to take advantage of the latest bleeding-edge syntax provided by the language.
- It supports optional type checking: If, for any reason, we decide that we don't want to explicitly define the type of a variable or a method, we can just skip the type definition. However, we should be aware that this means we are no longer taking advantage of the static typing, so we are giving up on all the benefits mentioned earlier.
- It is developed and maintained by Microsoft: The quality of the implementation of the language is very high, and it is unlikely that support will be dropped unexpectedly. TypeScript is based on the work of some of the world's best experts in programming language development.
- It is open source: This allows the community to freely contribute to the language and suggest features, which are discussed in an open manner. The fact that TypeScript is open source makes the development of third-party extensions and tools easier. This extends the scope of its usage even further.
Since modern browsers do not support TypeScript natively, there is a compiler that translates the TypeScript code we write into readable JavaScript in a predefined target version of ECMAScript. Once the code is compiled, all the type annotations are removed.
推薦閱讀
- ASP.NET MVC4框架揭秘
- Java 開發從入門到精通(第2版)
- C語言程序設計
- 薛定宇教授大講堂(卷Ⅳ):MATLAB最優化計算
- Linux網絡程序設計:基于龍芯平臺
- C語言實驗指導及習題解析
- R大數據分析實用指南
- Learning DHTMLX Suite UI
- 微信小程序項目開發實戰
- 劍指Java:核心原理與應用實踐
- 基于ARM Cortex-M4F內核的MSP432 MCU開發實踐
- GitHub入門與實踐
- 交互式程序設計(第2版)
- ABAQUS6.14中文版有限元分析與實例詳解
- FusionCharts Beginner’s Guide:The Official Guide for FusionCharts Suite