JavaScript Classes - ES5 vs ES6 An example that shows the difference between creating a JavaScript class and subclass in ES5 and ES6. Reference