WIT Software interview question

How do promises and asynchronous programming works.