ASSIA Interview Question

Explain how promises work ?