Home > Common Problem > body text

What does javascript superset mean?

藏色散人
Release: 2021-10-25 15:28:09
Original
2813 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template