why TypeScript

2024-04-14  本文已影响0人  Time_Notes

types are associated with run-time valaues

dynamically typed language static type, less error-prone

type checking is not done in runtime but before compiling or during development

ts file is compiled down to js extra features shape of an object, better maintenance and autocomplete

为JavaScript添加了静态类型

通过TypeScript compiler或Babel转译为JavaScript

静态类型在开发阶段就可以减少bug从而在一定程度上提升开发效率

ts
上一篇 下一篇

猜你喜欢

热点阅读