ES6 'll change the the the-the-the-same-write JS code.

Source: Internet
Author: User

https://hacks.mozilla.org/2015/04/es6-in-depth-an-introduction/

Counting to 6

The previous editions of the ECMAScript standard were numbered 1, 2, 3, and 5.

What is happened to Edition 4? An ECMAScript Edition 4 is once planned-and in fact a ton of work is done on it-but it is eventually scrapped as too am Bitious. (It had, for example, a sophisticated opt-in the static type system with generics and type inference.)

ES4 was contentious. When the standards committee finally stopped work on it, the Committee members agreed to publish a relatively modest ES5 a nd then proceed to work on the more substantial new features. This explicit, negotiated agreement was called "Harmony," and it's why the ES5 spec contains these the sentences:

ECMAScript is a vibrant language and the evolution of the language are not complete. Significant technical enhancement would continue with the future editions of this specification.

This statement could is seen as something of a promise.

Promises resolved

ES5, the update to the language, introduced Object.create() , Object.defineProperty() getters and setters, strict mode, and the JSON object. I ' ve used all these features, and I like what ES5 did for the language. But it would is too much to say all of these features had a dramatic impact on the the-I write JS code. The most important innovation, for me, is probably the new Array methods: .map() , .filter() , and so on.

Well, ES6 is different. It's the product of years of harmonious work. And it ' s a treasure trove of new language and library features, the most substantial upgrade for JS ever. The new features range from welcome conveniences, like arrow functions and simple string interpolation, to brain-melting N EW concepts like proxies and generators.

ES6 'll change the the the-the-the-same-write JS code.

This series is the new features ES6 offers to JavaScript programmers examining.

We'll start with a classic "missing feature" that I ' ve been eager to see in JavaScript for the better part of a decade. So joins us next week for a look at ES6 iterators and the new for-of loop.

ES6 'll change the the the-the-the-same-write JS code.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.