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
24 / 25
.catch
method to handle errors
24 / 25