new Error().name // β 'Error'
The name property identifies the error type; it defaults to 'Error'.
An error object is an object β typeof new Error('x') is 'object'.
typeof new Error('x')
'object'
Challenge: Verify the type.