Games Node.js Loop Quest The express lane
A throw becomes a rejection
An async function throws. Does the script crash on the spot?
async function fail() { throw new Error('bad');}fail().catch((e) => console.log('caught ' + e.message));console.log('sync');1. Predict the output
Tap the lines in the order you think they print.
- 1…
- 2…