JS Built-ins
Errormessagebeginner

Error.message β€” typeof is string

πŸ“– Usage Example
const err = new Error('msg')
err.message = 'updated'
err.message  // β†’ 'updated'

The message property is writable and can be changed after creation.

typeof Error.message

The .message property is always a string.

Challenge: Verify the type.

πŸ’‘ Hints (1)
  • β€’ The message property is always a string.