This lesson is for members. Join us?
Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!
Learn how to create Classes in JavaScript (ES6)
ES6 introduced the class
keyword to provide class-based programming in JavaScript. In this lesson, we'll learn how to create classes in JavaScript. We also learn how to create classes that extend others.
The class
keyword is essentially a syntactic sugar on top of the prototype model in JavaScript, which gives us a cleaner syntax.