JS Built-ins
Errorbeginner

Error types β€” RangeError extends Error

πŸ“– Usage Example
new SyntaxError('invalid syntax')
new ReferenceError('x is not defined')

SyntaxError and ReferenceError are specialized errors thrown by the JS engine.

RangeError instanceof Error

RangeError is a subclass of Error.

Challenge: Verify the instanceof chain.

πŸ’‘ Hints (1)
  • β€’ RangeError is thrown when a value is not in the allowed range.