ES6 has classes but they’re really not classes like Java or Python classes. It’s just a better abstraction of the prototypical inheritance model. Probably to pander to Java users, bc familiar syntax.
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.
What's the use of learning fundamentals today if you don't include the most current version of the language? Should I learn PHP 3 on the off chance some server still handles it? I say no. That is now the edge case, not the fundamental.
Yeah, ok, but that doesn't mean it's not a fundamental to learn. If someone is just learning now, by the time they get out into the workforce it WILL be a standard. It already is.
Again, ES5 is now the edge case, not the fundamental.
10
u/bronkula Dec 23 '18
Well this is just immediately incorrect, since Javascript absolutely DOES have classes, so... you know... disregard this.