EMAX interview question

Encapsulation, abstraction, and javascript question