Pergunta de entrevista da empresa DONE by NONE

How JavaScript works behind the scene?