Created
June 13, 2017 21:04
-
-
Save isaacs/20850214db764440a5a27711bf8140c5 to your computer and use it in GitHub Desktop.
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
'use strict' | |
let i = 0 | |
OUTER: while (true) { | |
console.log('outer before', i) | |
INNER: while (true) { | |
i++ | |
console.log('inner before', i) | |
if (i > 10) | |
break INNER | |
if (i % 2) | |
continue OUTER | |
console.log('inner after', i) | |
} | |
console.log('outer after', i) | |
break OUTER | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment