About Lesson
Object-oriented programming in JavaScript
JavaScript supports object-oriented programming (OOP) through its prototype-based inheritance model. In this model, objects are created from other objects, rather than classes, as in traditional class-based OOP languages.
You can also define methods on an object’s prototype to create shared behavior among all instances of the object.
JavaScript also has a built-in class syntax that provides a syntactic sugar for defining objects and their behavior.