Object Oriented Programming in JavaScript
- Lotfi Darragi
- 28 mars 2022
- 1 min de lecture

JavaScript is not a class-based object-oriented language. But it still has ways of using object oriented programming (OOP).
JavaScript is a functional language. JavaScript uses prototypes instead of classes for inheritance, so you can achieve object-oriented designs. Functions in JavaScript are also objects, and as as such they have properties and methods themselves.
Comments