JavaScript·Intermediate·Conceptual·1 min read
What causes an unhandled rejection?
Short interview answer
A rejection has no handler by the time the host performs its reporting check. Returning or awaiting a promise transfers responsibility to the caller; starting a promise and discarding it can create an unhandled rejection unless failure is deliberately handled.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.