Abstraction

up:: OOP Principles

Tldr

To ignore, or to hide, details that don’t matter.

This allows us to get an overview perspective without messing with details that don’t matter to us.

In a way, a smartphone is abstracted. The user doesn’t see the voltage, the temperature and the hardware details inside. Just seeing the charge and volume matters to the user.

We don’t know how .addEventListener() works. That’s good, we don’t have to understand it to use it and it’s best we don’t mess with it.

hasOwnProperty is another example.