Nagarro Interview Question

JavaScript basics as well as JavaScript advance