Unhandled Rejection Playground

Mr. Tono’s order burns and nobody catches it: when does the unhandledrejection bell ring, and what happens when Bagas comes late with a catch? Real events…

Why it matters

An escaped promise error does not stop the page, so it is easy to miss: in production it only shows in the user’s console. Knowing when the browser reports (and when it withdraws a report) tells you where to put the .catch, the await, and the error-log listener.

The key idea

Reported once the microtasks are done, withdrawn when handled later

Common mistakes

Try it in this playground