new TypeError('bad arg') // wrong type
new RangeError('out of bounds') // out of rangeJavaScript has several built-in Error subtypes for different error categories.
TypeError is a subclass of Error, so new TypeError() instanceof Error is true.
Challenge: Verify the instanceof chain.