Modern JavaScript Part 12: ES6 Classes

Quoting MDN: classes are primarily syntactical sugar over js’s existing prototype-based inheritance. The class syntax does not introduce a new object-oriented inheritance model to JavaScript. That being said, let’s review prototypal inheritance before we jump into classes. function Person(name,age) { Read more…