Node.js - Error Handling Patterns
What will be logged to the console when the following Node.js code runs?
process.on('unhandledRejection', (reason) => {
console.error('Unhandled rejection:', reason.message);
});
Promise.reject(new Error('Connection lost'));