美文网首页
why TypeScript

why TypeScript

作者: Time_Notes | 来源:发表于2024-04-14 04:40 被阅读0次

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

相关文章

网友评论

      本文标题:why TypeScript

      本文链接:https://www.haomeiwen.com/subject/wohludtx.html