JS Built-ins
ReferenceErrorbeginner

ReferenceError β€” .name property

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

ReferenceError is a subtype of Error and inherits all standard error properties.

ReferenceError Name

Every ReferenceError has a .name property equal to 'ReferenceError'.

Challenge: Verify the .name property.

πŸ’‘ Hints (1)
  • β€’ Error subtypes have a .name property matching their constructor name.