Instantly share code, notes, and snippets.

Embed
What would you like to do?
jump_1:
// 入れ子にしているときは問題ない
// continueとbreakはgotoではない
for (var i = 0; i < 10; i++) {
if((i % 2) == 0) {
console.log(i);
continue jump_1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment