I came across the use of labels to control the flow of a loop and did not quite get it. Anyone who can explain? Thanks | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

I came across the use of labels to control the flow of a loop and did not quite get it. Anyone who can explain? Thanks

14th Jan 2017, 6:38 AM
Erastus Mwaniki
Erastus Mwaniki - avatar
4 Answers
+ 3
It would be a good base of explanation, if you post your code ( I look at your profile, but didn't find it )... @Cheeze: Labels, yes: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label I discover its existence recently: the real need of use it, doesn't happened all days ^^
14th Jan 2017, 8:11 AM
visph
visph - avatar
+ 2
Labels?
14th Jan 2017, 7:25 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 2
Followed the link and now I get it.that was helpful. Learned something new too.
14th Jan 2017, 12:15 PM
Erastus Mwaniki
Erastus Mwaniki - avatar
+ 1
Wow, I learned new stuff
14th Jan 2017, 8:13 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar