Node.js - Error Handling Patterns
Which of the following Node.js code snippets correctly logs unhandled promise rejections and then exits the process with a failure code?
console.error to log the rejection reason.process.exit(1) inside the handler to exit with failure code after logging.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions