Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript和JavaScript的区别 #133

Open
GGXXMM opened this issue Apr 14, 2023 · 0 comments
Open

Typescript和JavaScript的区别 #133

GGXXMM opened this issue Apr 14, 2023 · 0 comments

Comments

@GGXXMM
Copy link
Owner

GGXXMM commented Apr 14, 2023

概述

Typescript是强类型的JavaScript超集,支持ES6语法,支持面向对象编程的概念,如类、接口、继承、泛型等。

TS相比JS优势(价值):

  • 强大的编辑器智能提示(提升研发效率,开发体验良好)
  • 代码可读性增强(团队协作,开发体验良好)
  • 编译阶段做类型检查(业务稳健,快速消除很多低级的语法错误)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant