try {
console.log(undeclaredVar)
} catch (e) {
e instanceof ReferenceError // β true
}ReferenceError is thrown when you try to access a variable that has not been declared.
new ReferenceError('not defined') creates a ReferenceError instance.
Challenge: Verify that a new ReferenceError is an instance of ReferenceError.