JS Built-ins
Errornamebeginner

Error.name β€” RangeError is 'RangeError'

πŸ“– Usage Example
const err = new Error('x')
err.name = 'CustomError'
err.name  // β†’ 'CustomError'

You can reassign the name property to create custom error identifiers.

RangeError.name

new RangeError().name returns 'RangeError'.

Challenge: Verify the name.

πŸ’‘ Hints (1)
  • β€’ RangeError is for values outside the allowed range.