JS Built-ins
Errorbeginner

Error types β€” EvalError name

πŸ“– Usage Example
try { null.x } catch(e) {
  e instanceof TypeError  // β†’ true
  e instanceof Error     // β†’ true
}

All built-in error subtypes inherit from Error, so instanceof Error is always true.

EvalError

EvalError is another Error subtype. new EvalError('x').name is 'EvalError'.

Challenge: Verify the name.

πŸ’‘ Hints (1)
  • β€’ EvalError extends Error like all other built-in error types.