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.
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.
You cannot use labels as if they are goto
.
Instead, you can only use labels to enhance the normal semantics of break
and continue
statements.
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Label_not_found