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

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.

主站蜘蛛池模板: 曲松县| 友谊县| 金堂县| 财经| 四川省| 庆元县| 龙胜| 湖南省| 辰溪县| 兰州市| 霍邱县| 加查县| 邢台县| 云和县| 夏邑县| 怀来县| 澄迈县| 黔南| 阜宁县| 铅山县| 威远县| 巴里| 广宗县| 淄博市| 衡阳县| 宕昌县| 邯郸县| 阿克陶县| 长海县| 元江| 丘北县| 松溪县| 濉溪县| 抚顺县| 开阳县| 冷水江市| 确山县| 堆龙德庆县| 金溪县| 铜山县| 孟连|