JS Built-ins
AggregateErrorbeginner

AggregateError β€” .message property

πŸ“– Usage Example
new AggregateError([new Error('x')], 'msg').message  // β†’ 'msg'

The message property holds the overall description of the aggregate error.

AggregateError Message

The second argument to new AggregateError(errors, message) is stored in .message.

Challenge: Verify the .message property.

πŸ’‘ Hints (1)
  • β€’ The second argument to AggregateError is the message string.