Jetking Infotrain interview question

just normal javascript based question answers