Infosys interview question

Every question was javascript related