Skip to content
JS
JavaScript error

SyntaxError

The JavaScript exception "label not found" occurs when a break or continue statement references a label that does not exist on any statement that contains the break or continue statement.

Reference entryJavaScriptFetched
SyntaxError: Undefined label 'label' (V8-based)
As listed by MDN Web Docs
SyntaxError: label not found (Firefox)
As listed by MDN Web Docs
SyntaxError: Cannot use the undeclared label 'label'. (Safari)
As listed by MDN Web Docs
Category
SyntaxError
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.