In this article we're going to review the main characteristics of object oriented programming (OOP) with practical JavaScript examples. We will talk about OOP main concepts, why and when it can be useful, and I'll give you plenty of examples using JS code. The core concept of OOP is to separate concerns and responsibilities into entities. Each entity will group a given set of information and actions (methods) that can be performed by the entity.
Table of contents
Intro to Object-Oriented ProgrammingHow to Create Objects – ClassesThe Four Principles of OOPObject CompositionRoundup12 Comments
Sort: