Ogury Interview Question

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