Infosys interview question

Basics of JavaScript React Basics