Pergunta de entrevista da empresa Hacktiv8

How react works? Please explain how javascript works?