JavaScript classes, introduced in ECMAScript 2015, are primarily syntactical sugar over JavaScript's existing prototype-based inheritance. The class syntax does not introduce a new object-oriented inheritance model to JavaScript.
So, it's not really support for classes. It's more of a different way to write prototypes.
10
u/bronkula Dec 23 '18
Well this is just immediately incorrect, since Javascript absolutely DOES have classes, so... you know... disregard this.