JS Built-ins
Errormessagebeginner

Error.message β€” empty message

πŸ“– Usage Example
new Error().message  // β†’ ''

Omitting the message argument results in an empty string message.

Error Empty Message

new Error() has an empty string .message.

Challenge: Verify the empty message.

πŸ’‘ Hints (1)
  • β€’ Without a message, the .message property defaults to an empty string.