Level 15

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. 1…
  2. 2…