CodeZettaInterview Hub

Node.js · Async Programming · Junior · Debugging

What is the danger of unhandled promise rejections?

Short Interview Answer

They can crash the process (depending on Node version/flags) or silently leave work incomplete.

Detailed Explanation

Always attach catch or await in try/catch. Use `--unhandled-rejections=strict` in CI. Log and alert on rejection events during migration.

Did you know this answer?