Pergunta de entrevista da empresa MathWorks

What is promise? What is event loop?