If you are learning Object-Oriented Programming (OOP) in JavaScript, one word that starts appearing very often is: Encapsulation

At first, it can sound like a big and confusing concept.

When I started learning it, I realized the idea is actually much simpler than the name.

Encapsulation is mainly about protecting data and controlling how that...