In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
How to find out the relationship between JS, ES, TS, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
Preface
I believe that many front-end partners are quite familiar with the word ECMAScript,JavaScript,TypeScript, which can be said to be the core technology of our work, but if you specifically ask what is the relationship between these three and what is the difference, I am afraid that like the editor, it is difficult to accurately describe them, so I decided to thoroughly understand their relationship and difference with you.
The relationship among the three ECMAScript
ECMAScript, the language defined by ECMA-262, is not limited to Web browsers. In fact, the language has no methods such as input and output.
ECMA-262 defines the language as a benchmark to build a more robust scripting language on top of it. At a basic level, ECMA-262 describes the following parts of the language, if not browsers:
Grammar
Types
Statement
Keyword
Reserved word
Operator
Global object
ECMAScript is just a term for a language that implements all aspects of the specification. In fact, it can also be understood as a language standard. JavaScript implements ECMAScript, while Adobe ActionScript also implements ECMAScript. If you want, you can also build a scripting language such as XXScript to implement ECMAScript.
JavaScript
Although JavaScript and ECMAScript are basically synonyms in everyday use, JavaScript is far from being limited to the parts defined by ECMA-262. The complete JavaScript implementation consists of the following parts:
Core (ECMAScript)
Document object Model (DOM)
Browser object Model (BOM)
It can be understood that ECMAScript is the scripting language that forms the foundation of JavaScript, together with DOM and BOM constitute a complete JavaScript implementation.
TypeScript
TypeScript is a superset of JavaScript, adding an optional static type system, many new ECMAScript features (such as decorators) that have not yet been officially released, and so on, which will eventually be compiled into JavaScript code.
ECMAScript is a standard language, JavaScript is the implementation of ECMAScript, and TypeScript is a superset of JavaScript. Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.