What is a javascript superset
This article introduces the knowledge of "what is a javascript superset". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Javascript superset is TypeScript;TypeScript is a free and open source programming language developed by Microsoft, which supports the ES6 standard; its design goal is to develop large-scale applications, it can be compiled into pure JavaScript, and the compiled JavaScript can run on any browser.
This article operating environment: windows7 system, javascript1.8.5 version, Dell G3 computer.
What does javascript superset mean?
The superset of javascript is TypeScript. TypeScript is a free and open source programming language developed by Microsoft that supports the ES 6 standard; its design goal is to develop large applications that can be compiled into pure JavaScript and the compiled JavaScript can run on any browser.
Language characteristics
TypeScript is a language extension that adds features to JavaScript. Additional features include:
Type annotation and compile-time type checking
Type inference
Type erase
Interface
Enumerate
Mixin
Generic programming
Namespace
Tuple
Await
The difference between JavaScript and TypeScript:
TypeScript is a superset of JavaScript and extends the syntax of JavaScript, so existing JavaScript code can work with TypeScript without any modification, and TypeScript provides static type checking at compile time through type annotations.
TypeScript can process existing JavaScript code and compile only the TypeScript code in it.
This is the end of what is the javascript superset. Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!