Getting Started with Modern JavaScript — Arrow Functions

One of the most popular new features in ECMAScript 2015 is arrow functions. Is it because of the new cleaner syntax or the sharing of this with the parent scope? Maybe both. Let’s look into them in more detail.


The first factor that influenced the introduction of arrow functions was a shorter function syntax. The syntax can look a…