Infosys interview question

Javascript basics are touched down with some problems and some Usages