ES6 added the
This syntax is essentially a wrapper for the [[Prototype]] chain to make a more seamless transition
for developers used to other object oriented languages. It abstracts out the conventional
in favor of clearer alternatives.
keyword but the most important is that the
class keyword hides a lot of the
By confusing the two in our code, we do a disservice to ourselves and to other developers who must understand our code. It is much better to use a function or an object and work directly with the prototype.
Here are a few links: