Ogury interview question

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