What is Ecmascript 2015 (ES6) specification?

Asked

Viewed 5,648 times

20

I recently started a project with Cordova + Ionic and, at a certain point, I entered an impasse in which I found the affirmative that the framework follows the "latest" web standards such as the new ES6 specification (or Ecmascript 2015 or ES2015).

What would be Ecmascript 2015 specification (ES6)?

2 answers

20


Specification is a set of rules that will regulate language implementations. It will have evolutions, new versions are created with novelties of what the language should have and the 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. Tem more information on this in another question.

ECMA is an international regulatory entity of European origin. Similar to ISO which is more global. Just as we have ABNT in Brazil. Generally, adopting an ECMA regulation is easier than ISO, so it is common to opt for it, and it may be a way to achieve ISO afterwards. And in some places in Europe requires this regulation for adoption in many circumstances, in other places not.

There is a site with all the ES6 news. To official specification can be obtained on the official website.

You can track how this version is implemented 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 ES.Next, which does not yet have a definitive name. Well, this was lagged, each year has a new ES.Next.

  • Javascript then has been called Ecmascript? In stop you in the question I talk about framework follows the "latest" web standards, so it would be as you almost said, a kind of standard?

  • 1

    In fact the language is called Ecmascript, Javascript is the implementation of Mozilla. Everyone speaks wrong. Nobody wants to do it just for the implementation of a browser, they want to do it for everyone, and what runs on everyone is Ecmascript. They use the features that are already available in this language version..

  • Thanks! Cool, gave to clarify a little! I will do a deeper search to understand better. Abs.

  • @Acklay put a link which has + information on ES. Not much :)

10

It is simply the newest version of Javascript.

In fact, 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. Then this year we will have ES2017 (or ES8). And so on.

Objectives of ES6

TC39 focused on some goals in the development of ES6:

  • Be a better language to build complex applications;
  • Solve old Javascript problems;
  • Ease in the development of Ibraries.

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

Main Features

  • Let;
  • const;
  • Arrow functions;
  • destructuring;

In addition to some related to Object Orientation. How to sugar syntax for the famous get/setters and among others.

Source

Browser other questions tagged

You are not signed in. Login or sign up in order to post.