MyAnatomy interview question

How to handle Promises in JS?