EPAM Systems interview question

JavaScript hoisting, typecasting, prototypes, classes, encapsulation, etc.