Node.js Developer — Medium
Key points
- Unhandled promise rejection occurs when a Promise is rejected without proper error handling.
- Without a .catch() handler or try/catch, the rejection can cause the Node.js process to crash.
- It is crucial to always handle promise rejections to prevent unexpected termination of the application.
Ready to go further?
Related questions
