All challenges
Multiple ChoiceIntermediate 30s

Throw Non-Error

Choose the best answer for: throwing non-Error values
Options
  1. 1Throwing a non-Error value is undefined behavior across engines
  2. 2Throwing a non-Error value always raises a SyntaxError there
  3. 3Only objects inheriting from the built-in Error can be thrown
  4. 4JavaScript allows throwing any value (strings, numbers, objects)

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