The equivalent of these two code?

The task is to exit the loop at the label or go to the next iteration of the loop by tag

tested in the browser - the result of the same

label: while (...) 
{
break //or continue
}

while (...) 
label: {
break //or continue
}


the same question about other cycles:

label: for (var i = 0; i < 3; i++) 
{ 
break //or continue
}

for (var i = 0; i < 3; i++) 
label: { 
break //or continue
}
June 26th 19 at 14:01
1 answer
June 26th 19 at 14:03
In short: nope

Find more questions by tags JavaScript