Pregunta de entrevista de Ogury

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