javascript · javascript/ReferenceError
ReferenceError
ReferenceError
Thrown when code references a variable or identifier that does not exist in the current scope, such as using a variable before it is declared in a block that uses let/const (the "temporal dead zone"), or a typo in an identifier name.