Infosys interview question

Asked about JavaScript, mostly on java