Infosys interview question

React basics and javascript basics