Home  >  Article  >  What does javascript superset mean?

What does javascript superset mean?

藏色散人
藏色散人Original
2021-10-25 15:28:092785browse

The superset of javascript is TypeScript; TypeScript is a free and open source programming language developed by Microsoft, supporting the ES6 standard; its design goal is to develop large-scale applications, it can be compiled into pure JavaScript, and the compiled JavaScript can be run on any browser.

What does javascript superset mean?

The operating environment of this article: windows7 system, javascript version 1.8.5, 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-scale applications. It can be compiled into pure JavaScript, and the compiled JavaScript can run on any browser.

Language Features

TypeScript is a language extension that adds features to JavaScript. Added features include:

  • Type annotations and compile-time type checking

  • Type inference

  • Type erasure

  • Interface

  • Enumeration

  • Mixin

  • Generic Programming

  • Namespace

  • Tuple

  • Await

The difference between JavaScript and TypeScript:

TypeScript is a superset of JavaScript that extends the syntax of JavaScript, so existing JavaScript code can be used with TypeScript works together without any modification, and TypeScript provides compile-time static type checking through type annotations.

TypeScript can process existing JavaScript code and compile only the TypeScript code within it.

What does javascript superset mean?

[Recommended learning: javascript basic tutorial]

The above is the detailed content of What does javascript superset mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn