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

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.

主站蜘蛛池模板: 沁源县| 山西省| 昌平区| 腾冲县| 上犹县| 孝义市| 峨眉山市| 扬中市| 台中市| 贵港市| 南陵县| 砚山县| 拜泉县| 苗栗市| 五大连池市| 赤城县| 陈巴尔虎旗| 思茅市| 蒲城县| 石柱| 射洪县| 通城县| 合肥市| 九台市| 红桥区| 墨竹工卡县| 遵义县| 新野县| 哈巴河县| 安阳县| 兴宁市| 应用必备| 雷州市| 依安县| 淮南市| 怀仁县| 太康县| 巧家县| 泗阳县| 中卫市| 元阳县|