toStringbeginnernew Error('').toString() // β 'Error'If the message is empty, toString() returns just the name.
When the message is empty, error.toString() returns just the name: 'Error'.
Challenge: Verify the result for an Error with no message.