You can use the .then() method on a Promise to handle its successful resolution and use the .catch() method to handle errors.
.then()
.catch()