Please explain this usage of a colon in javascript

前端 未结 5 432

I\'m making a library, and I often inspect the result of Closure Compiler\'s output to see how it\'s doing things (I do have unit tests, but I still like to see the compiled

5条回答
  •  不思量自难忘°
    2021-01-11 12:42

    That is just a label.

    you can use continue [label name] (or break) in a loop to go to a label.

    More explanations of what they are can be seen throughout the interwebs.

提交回复
热议问题