toString
new Error('x').toString() === 'Error: x' // β true
Use toString() to convert errors to a readable string for logging.
error.toString() always returns a string.
error.toString()
Challenge: Verify the type.