Level 40

Nobody caught it

A rejected promise with no .catch anywhere.

process.on('unhandledRejection', (e) => console.log('unhandled: ' + e.message));Promise.reject(new Error('forgot'));console.log('sync');

1. Predict the output

Tap the lines in the order you think they print.

  1. 1…
  2. 2…