Taking an example of JavaScript Promises through four steps:
- set up a basic fn that returns a promise
- adding argument data to the resolve and reject states
- using .then() method to call handlers for resolve/reject
- passing promise state data to the handlers