Games Node.js Loop Quest The express lane
Errors skip to .catch
A rejected promise with a .then, a .catch and another .then.
Promise.reject(new Error('boom')) .then(() => console.log('skipped')) .catch((err) => console.log('caught ' + err.message)) .then(() => console.log('after'));1. Predict the output
Tap the lines in the order you think they print.
- 1…
- 2…