Promise Error Handling
- Some asynchronous operations can fail (especially network operations)
- Promises have a
.catch
method 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 errors
9 / 23