Ecmascript 6 (scratchbook)

This page is mainly used for me to add notes on things I encounter while working with EcmaScript 6 in Chrome (48) Classes: When working with EcmaScript 6 you can use classes. Classes are defined like so: class doSomething{ constructor(param){ this.param = param; } someMethod(){ console.log(‘do something’); } } Really straight forward Inheritance Inheritance can […]