When you use the goto statement, the position to be moved to is defined by a label.
A statement label is defined in the same way as a variable name.
The statement label is followed by a colon
: to separate it from the statement it
The following code defines a label called
there: x = 10; // A labeled statement
Like other statements, the goto statement ends with a semicolon: