Pergunta de entrevista da empresa Ogury

How and why would you use a 'promise' in JavaScript?