ECMAScript 2015

A variety of new syntax and features were added during the ES6 update, much of which I still haven’t gotten around to using. There are certain updates that I really like, such as arrow functions and the introduction of formal classes. Arrow functions help are quite simple to understand and remove a lot of the need for the binding this to the correct context, while classes provide a much-needed standardized approach to object-oriented programming in JavaScript.

Below, I’ve written an example of a few functions in ES6 style.

screen-shot-2016-10-13-at-10-52-07-pm

 

Leave a comment