JS Built-ins
TypeErrorbeginner

TypeError β€” .name property

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

TypeError is a subtype of Error and shares all standard error properties.

TypeError Name

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

Challenge: Verify the .name property.

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