Created
October 3, 2020 01:45
-
-
Save jaenster/1ad5edecf2cd3c0b2a2c9481a5522c83 to your computer and use it in GitHub Desktop.
How to do a GoTo in javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let i = 0; | |
/*ignore*/_goto: {do { | |
GoTo: { | |
if (i != 4) { | |
i++; | |
break GoTo; | |
} | |
/*ignore*/break _goto;}} while (true)}; | |
console.debug(i); // 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment