It's a label for the loop. Basically it's a way of writing a goto target in Javascript and you should probably never ever use it.
loop: for followed by continue loop means that when continue loop is encountered, it immediately jumps to continue the loop labeled loop:, breaking out of whatever nested loops necessary to do so.
Thank you! Here is some documentation about it for other people interested about it: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label
It's a label for the loop. Basically it's a way of writing a
goto
target in Javascript and you should probably never ever use it.loop: for
followed bycontinue loop
means that whencontinue loop
is encountered, it immediately jumps to continue the loop labeledloop:
, breaking out of whatever nested loops necessary to do so.Can someone explain what the "loop:" is? I don't konw how to google that. :)
Didn't really make sense. Why do we need the for loop?
Didn't have clear expectations.