What does this do in javascript?

I came across a function below in one of the javascript files of a SharePoint system.

function RTE_InsertImage(strBaseElementID)
{ULS1Lu:;
   //A bunch of javascript
}

I have never seen something like ULS1Lu:;in any of the javascript code I worked with before. Does anyone know what this does?

Sorry for the weak title of the question. I was not sure how else to express it.

+5
source share
2 answers

Its a code label , technically they don’t need a semicolon, but in javascript this shouldn't hurt. The shortcut will allow a break or continuation to translate the code back to it.

Most people think that instead of shortcuts, it's better to use function calls whenever possible.

+10
source

, . , - . , goto.

+3

All Articles