Pergunta de entrevista da empresa Tata Consultancy Services

Basic question regarding the JS and React.