Promise Error Handling
- Some asynchronous operations can fail (especially network operations)
- Promises have a
.catchmethod to handle errors - This cannot be done in a normal try / catch block because the code has moved on
9 / 23
.catch method to handle errors9 / 23