Anonymous interview question

Brief explanation of promises in JavaScript