Course Content
Data types and Values
0/1
Object-oriented programming in JavaScript
0/1
Error handling and debugging in JavaScript
0/1
JavaScript functions for string and array manipulation
0/1
JavaScript Libraries and Frameworks
0/1
JavaScript
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.