All challenges
Multiple ChoiceIntermediate 30s

window.onerror

Choose the best answer for: global error handler
Options
  1. 1window.onerror works only for asynchronous unhandled rejections
  2. 2window.onerror prevents all errors from ever being thrown
  3. 3window.onerror only catches syntax errors during script parse
  4. 4window.onerror catches unhandled exceptions globally

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle