Question 71 of 10071%
71
What gets logged when this code runs as a Node.js script?
process.on("uncaughtException", (reason) => {
console.log("Caught unhandled rejection:", reason.message);
});
function fail() {
throw new Error("Boom!");
}
fail();
console.log("sync done");
71/100