JS Built-ins
Errorbeginner

Error() β€” name is 'Error'

πŸ“– Usage Example
new Error('x') instanceof Object  // β†’ true

Error inherits from Object and has stack, message, and name properties.

Error name Property

new Error('x').name is 'Error'.

Challenge: Verify the name property.

πŸ’‘ Hints (1)
  • β€’ The name property identifies the error type.