We can use the .catch() method at the end of the Promise chain to catch and handle any errors that occur in the chain.
.catch()