JavaScript Class, Inheritance, Override in ES6

ES6, also known as ECMAScript2015, introduced classes. Notice that classes are used in order to use inheritance.

This sample code is written in different concepts you should read the following posts as well.

Presumably this demo looks more friendly to you 🙂 actually I think so. But don't forget that no magic here still, this code is also transpiled(or compiled) to ES5 for browser compatibility.

Leave a Reply