Skip to content
JS
JavaScript error

ReferenceError

The JavaScript exception "_variable_ is not defined" occurs when there is a non-existent variable referenced somewhere.

Reference entryJavaScriptFetched
ReferenceError: "x" is not defined (V8-based & Firefox)
As listed by MDN Web Docs
ReferenceError: Can't find variable: x (Safari)
As listed by MDN Web Docs
Category
ReferenceError
Severity
error
Runtime
both
or press Cmd/Ctrl + Enter. The text is only sent to this site to match it.
Source: MDN Web Docs. Data fetched 2026-09-25T01:48:37.274Z.