What does this grammar mean #12733
Answered
by
nicolo-ribaudo
myNameIsDu
asked this question in
Q&A
-
I found this grammar when I read the source code of babel-parser: In the switch statement: I found them meaningless and ignored, But why write it like this, Will the prompt terminate the while statement? |
Beta Was this translation helpful? Give feedback.
Answered by
nicolo-ribaudo
Feb 1, 2021
Replies: 1 comment
-
Yes, without that label https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JLHwung
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, without that label
break
would terminate theswitch
statement instead of the loop.https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label