easy5 pts · first answer countsjavascriptasync-awaiterror-handling
try/catch around an async call
Running this in Node.js, what happens?
async function load() {
throw new Error('boom')
}
try {
load()
} catch (e) {
console.log('caught')
}
console.log('done')