What is ECMAScript 2015 (ES6) specification?

I recently started a project with Cordova + Ionic, and at one point I got into an impasse where I found the statement that the framework follows the "latest" web standards, such as the new ES6 specification (or ECMAScript 2015 or, still, ES2015).

What would be ECMAScript 2015 (ES6) specification?

Author: Luiz Felipe, 2017-01-31

2 answers

Specification is a set of rules that will regulate language implementations. It is evolving, new versions are created with novelties of what the language should have and implementations that want to conform to the most current specification should implement.

ES6 is ECMAScript 6. ECMAcript is the official name of what we know as JavaScript which is actually the name created by Mozilla. This version is also known by the year of its publication, in case 2015.

JavaScript is an implementation of ECMAScript. You have more information about this in another question .

ECMA is an international regulatory body of European origin. Similar to ISO which is more worldwide. Just like we have ABNT in Brazil. In general, approving an ECMA regulation is easier than ISO, so it is common to opt for it, and it can be a way to later achieve ISO. And in some places in Europe it requires this regulation to adoption in many circumstances, elsewhere not.

There is a site with all the news of ES6. The official specification can be obtained from the official website .

You can follow how the implementation of this version is going in browsers. For example in Mozilla . You can also see a comparative table .

We are already working with the version 7 (2016). Soon we will have the ES.Next, which does not yet have a definitive name. Good, this has lagged, each year has a new ES.Next.

 20
Author: Maniero, 2020-12-04 23:03:49

Is simply the newest version of JavaScript.

Actually, the most commonly used name is ES2016. The idea of the committee responsible (known as TC39) for language updates is precisely to make an annual release. So this year we will have ES2017 (or ES8). And so on.

ES6 objectives

TC39 focused on some goals in the development of ES6:

  • be a better language for building applications complex;
  • solve old JavaScript problems;
  • ease in library development.

These goals will become clearer when we look at the ES6 features in practice.

Main Features

  • let;
  • const;
  • arrow functions;
  • destructuring;

Plus some related to object orientation. Like the sugar syntax for the famous get / setters and between others.

Source

 9
Author: Asura Khan, 2017-01-31 13:10:09