ES2015 Cheatsheet

let vs const (and the old var)


Both let and const are much safer than var because it scopes the declaration within the nearest block.

let

const

var

ES2015 Classes


Creating a class

{% gist lyc4n/8ad3136b770bd05f5f2187fd8a30bcf5 es6_class.es6 %}

Inheriting from another class

{% gist lyc4n/8ad3136b770bd05f5f2187fd8a30bcf5 es6_inheritance.es6 %}