Pergunta de entrevista da empresa Capgemini

How the JavaScript works and process the threads?