Pregunta de entrevista de Infosys

Basic react js question and javascript