A program evaluates the identifier total, but no accessible lexical environment contains that name. Which error type results?
Explanation
Normal identifier resolution searches the accessible lexical environments, and failure to resolve the name causes an error of the ReferenceError type. This is not a TypeError because no value was obtained for an operation; the lookup itself failed.