Thomas R Alexander

Manager, Developer, and professional problem solver

Tag: es6

ES6 Features: Classes

Up until ES6, JavaScript lacked the ability to create¬†classes in the way that other languages offer. Sure you could create “classes,” but it always left a sour taste in our¬†mouths. Talk about UGLY code. Although ES6 adds the keyword, “class”, they really are syntactic sugar around the old way of doing it in ES5. You’ll

ES6 Features: Arrow Functions

ES6 introduces a concept borrowed from other programming languages, like C#, Java, and CoffeeScript, called arrow functions. An arrow function is a way to write shorthand syntax for anonymous functions, all the while keeping the same binding of “this” as the current object . Let’s start with an example. Say you have an array that