官术网_书友最值得收藏!

Understanding the benefits of TypeScript

When a JavaScript codebase grows, it can become hard to read and maintain. TypeScript is an extension of JavaScript, adding static types. The TypeScript compiler reads in TypeScript code that includes type information and produces clean, readable JavaScript with the type information transformed and removed. The compiled code can then run in our favorite browsers and Node.js.

TypeScript offers several benefits over JavaScript:

  • Coding errors can be caught in the development process earlier
  • Static types allow tools to be built that improve the developer experience and productivity
  • JavaScript features that aren't implemented in all the browsers yet can actually be used in an app that targets those browsers

We'll go through these points in detail in the following sections.

主站蜘蛛池模板: 玉山县| 电白县| 临漳县| 调兵山市| 界首市| 丘北县| 龙口市| 乃东县| 邢台县| 无极县| 乌海市| 山阳县| 泰州市| 丰顺县| 昭通市| 留坝县| 铜鼓县| 建始县| 南城县| 刚察县| 彭泽县| 沽源县| 永城市| 南通市| 西和县| 泰州市| 南充市| 吴忠市| 孟村| 措美县| 神木县| 广丰县| 科技| 江源县| 北碚区| 武宁县| 通山县| 南乐县| 莱州市| 秦皇岛市| 山阳县|