Chapter 3. Features Explained
ECMAScript 6 is a large collection of new features that programmers need to learn and explore and ultimately bring to their projects. The following is a list of some of the features, with a brief description of each one.
this is can often prove difficult.
What better way to provide clarity than to add yet another meaning for
this? Arrow functions are a new syntax that allow developers to manage their scope differently than before, providing yet another value for
In addition to helping developers understand what
this is, arrow functions have some syntactic sugar that allows you to opt-out of using the
return keywords throughout your code.
Let, Const, and Block Functions
Prior to the ES6 release, each time you declared a new variable, you used the keyword
var. There were no alternate keywords to define a variable. Starting with the ES6 release, you will now have two additional constructs ...