JavaScript Professional — Hard
Key points
- The error message 'oops' is passed through the promise chain.
- The catch method handles the error and returns the message.
- The console.log statement in p4 outputs the error message.
Ready to go further?
Related questions
