The article is updated in the public account: Novices of Xiaoheshan
What is ES?
ECMAScript (or ES)[1] is a general-purpose programming language, standardised by Ecma International according to the document ECMA-262. It is a JavaScript standard meant to ensure the interoperability of Web pages across different Web browsers.[2] ECMAScript is commonly used for client-side scripting on the World Wide Web, and it is increasingly being used for writing server applications and services using Node.js.
We can see on Wikipedia that ES is a general programming language and a JavaScript standard designed to ensure web page interoperability between different web browsers.
In general, ES is a standard that constrains us to write JavaScript.
You can think about it, when we learn to write JavaScript code, what kind of variable declaration should we use? Yes, keywords: var, let, const. Then why must it be var, let, const? Why use the function keyword to declare a function? Instead of other words?
Because this is ECMAScript (ES) stipulates that we want to do this, stipulates the grammatical rules of JavaScript.
For another example, when we write in other languages, we must have a semicolon at the end of the sentence, which is optional in JavaScript. Why is this happening? Because these are also ECMAScript (ES) regulations.
ECMAScript is the grammatical specification in JavaScript!
ECMAScript is such an excellent existence, it stipulates the most basic part of our Javascript!
The role of ECMAScript
Through the above knowledge, we can now know that ESMAScript is a component of JavaScript, what is its specific role?
- Grammar -parsing rules, keywords, statements, declarations, operations, etc.
- type -boolean, number, string, object, etc.
- Prototype and inheritance
- Built-in standard library of objects and functions -JSON, numbers (Math), array methods, object introspection methods, etc.
So, what is ES6?
ES6 is the abbreviation of ECMAScript 6, which is easy to understand. As the name suggests, it is the sixth version of ECMAScript, which means it has an earlier version, and there will be more versions in the future.
Let's take a look at the history of ECMAScript.
in 1996 November, Netscape company, decided to submit to the International Organization for Standardization JavaScript ECMA. The following year, ECMA released ECMAScript. This version is ECMAScript version 1.0.
In June 1998, , ECMAScript version 2.0 was released.
In December 1999, , ECMAScript version 3.0 was released, which became a common standard for JavaScript and was widely supported.
In October 2007, , the draft version 4.0 of ECMAScript was released, which greatly upgraded version 3.0. However, large companies led by Yahoo, Microsoft, and Google opposed the substantial upgrade of JavaScript and advocated minor changes. The differences between the parties were too great. The argument was too radical, ECMA decided to suspend the development of ECMAScript 4.0 after a meeting
In December 2009, , ECMAScript version 5.0 was officially released.
In June 2015, , ECMAScript 6 was officially passed and became an international standard.
Why is ES6 so widely used?
For developers, ES6 brings a wide range of new functions and new methods, as well as many convenient functions (for example: arrow functions, let, const, etc.).
In summary, ECMAScript is the basic standard part of JavaScript, and ECMAScript 6 is its latest generation standard. Therefore, if you want to learn JavaScript well, you must learn ECMAScript 6.
How to learn ECMAScript 6
The book "Introduction to ECMAScript 6" by Mr. Ruan Yifeng is humorous, transparent, and suitable for novice learning. We have summarized a series of articles with relevant learning links for you.
Come on! Sao Nian, click on the link below and let us start learning ES6!
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。