Pergunta de entrevista da empresa WIT Software

How do promises and asynchronous programming works.