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

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.

主站蜘蛛池模板: 大关县| 新晃| 杭锦后旗| 邯郸市| 武平县| 乡城县| 隆林| 庆城县| 兴和县| 通州区| 禄劝| 东城区| 大厂| 安乡县| 镇平县| 盱眙县| 临漳县| 中山市| 城口县| 康平县| 饶阳县| 黄陵县| 霍邱县| 元谋县| 黔西| 义马市| 建水县| 徐州市| 马关县| 翼城县| 紫金县| 梁河县| 出国| 忻城县| 清原| 尼勒克县| 伊川县| 津市市| 象州县| 南岸区| 工布江达县|