upGrad interview question

Prototypes, JS Comparisions, Event loop