JS label statement

https://codepen.io/Onii-Sann/pen/mdvJVEe

I'm trying to use label then call the label using continue and break statement without using loop statement, then it doesn't work and throw the runtime error, does the label statement only can be used over loop statement?
Was this page helpful?