i get reference from here "How can I use goto in Javascript?"
i understand the code as below
[lbl] first:
alert("Test")
goto first;
however. why the code below does not work for me
goto end;
alert("skipped line");
[lbl] end:
when I run the above command I will get an error like this
Labels are for loops and blocks.
Loop usage:
You can also use
continue label
.Block usage:
Non-strict, non-generator, function usage: