Classes
In this lesson you'll learn a clearer way of doing prototype inheritance in ES6.
We'll cover the following
Quoting MDN:
“Classes are primarily syntactic sugar over
Javascript
'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.
Get hands-on with 1200+ tech skills courses.