OOP
(Object-Oriented Programming) is an approach in programming in which data is encapsulated within
objects
and the object itself is operated on, rather than its component parts.
JavaScript
is heavily object-oriented. It follows a
prototype
-based model
, but it also offers a
class syntax
to enable typical OOP paradigms.