Put in order · JavaScript and React course · Module 16: Error Handling and Suspense
Global unhandledrejection Handler
Arrange the correct syntax for a global Promise rejection handler:
Items to put in order
- { logError(event.reason) }
- , (event) =>
- window.addEventListener(
- )
- 'unhandledrejection'
You can check the correct answer by solving this task in the CodeWorlds game.