JavaScript
JavaScript variable or symbol is not defined
JavaScript tried to use a variable, function, or imported name that does not exist in the current scope.
JavaScript
JavaScript tried to use a variable, function, or imported name that does not exist in the current scope.
Observed message
ReferenceError: "x" is not defined
Why it happens
How to fix it
Official reference
MDN: ReferenceError: x is not definedRelated errors
Explore more