This is more of a conceptual question. I am confused about OOP pillars in Java vs JavaScript.
Encapsulation: hiding data using getters and setters et