Rootquotient interview question

How do promises in NodeJS work?