Review

Promises are awesome. Use them. They solve the inversion of control issues that plague us with callbacks-only code.

They don’t get rid of callbacks, they just redirect the orchestration of those callbacks to a trustable intermediary mechanism that sits between us and another utility.

Promise chains also begin to address (though certainly not perfectly) a better way of expressing async flow in sequential fashion, which helps our brains plan and maintain async JS code better. We’ll see an even better solution to that problem in the next chapter!