ES2015 has introduced the concept of "classes" in JavaScript.
But be aware - JavaScript classes are just syntactical sugar over JavaScript's existing prototype-based inheritance. The class syntax is not introducing a new object-oriented inheritance model to JavaScript.
JavaScript classes provides simpler and clearer syntax to create objects and deal with inheritance (proceed with caution.. inheritance vs. composition = specialization vs. sharing behavior).
The existing model of prototypal inheritance in JavaScript is based on a special kind of function and the new
keyword, which really just alters how the function behaves regarding what it returns and how it sets up the prototype chain.