const err = new Error('oops') err instanceof Error // β true
Error instances can be checked with instanceof to distinguish error types.
new Error('msg') instanceof Error is true.
new Error('msg') instanceof Error
true
Challenge: Verify the instanceof check.