Nagarro interview question

JavaScript basics as well as JavaScript advance