The buttons below can be used to create new rejected promises that are either
eventually handled, or just left unhandled. The corresponding
unhandledrejection events (and rejectionhandled if
the promise is eventually handled) are logged.
This sample also shows how a web app might keep a running tally of all
unhandled rejections in a Map object. This could come in handy
when working with a centralized error reporting infrastructure, where you
want to log all rejected promises that have gone unhandled up to that point.