Home > Article > Web Front-end > What are es6 and es7
The full name of es6 is "ECMAScript6", which is the JavaScript language standard officially released in June 2015. It is officially called ECMAScript 2015. The full name of es7 is "ECMAScript7", which is the JavaScript language standard officially released in June 2016.
The operating environment of this tutorial: windows7 system, ECMAScript 6&&ECMAScript 7 version, Dell G3 computer.
What is es6
ECMAScript 6 (ES6 for short) is a JavaScript language officially released in June 2015 standard, officially called ECMAScript 2015 (ES2015). Its goal is to enable the JavaScript language to be used to write complex large-scale applications and become an enterprise-level development language.
What can es6 do?
ES6 is a major version upgrade. At the same time, because ES6 adheres to the design concept of maximizing compatibility with existing code, the JS code you wrote in the past will continue to run normally.
Many browsers already support some ES6 features and will continue to work on implementing the remaining features. This means that in some browsers that have implemented some features, your JS code can already run normally.
Popular MVVM frameworks such as Vue, React, Angular, etc. will be better developed with ES6. The construction tools of these frameworks also support the compilation of ES6.
The latest Node.js version already supports 99% of ES6 features, which means that it is enough for most businesses to use in projects.
What is es7
ECMAScript 7 (ES7 for short) is a JavaScript language standard officially released in June 2016. It is officially called ECMAScript 2016 (ES2016).
There are not many changes compared with the sixth version (ES6), mainly the addition of two new features: Array.prototype.include
and the exponentiation operator.
1. Array.prototype.includes()
[1].includes(1); // true
2. Exponential operator
2**10; // 1024
[Related recommendations: javascript video tutorial、web front-end】
The above is the detailed content of What are es6 and es7. For more information, please follow other related articles on the PHP Chinese website!