Created
January 21, 2020 08:22
-
-
Save blackavec/5af7dc4054833f4aeb2e9d7b1c07cbb9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function testFor(obj) { | |
let i = 10 | |
for(;;) { | |
if (i-- === 0) | |
return true | |
} | |
} | |
function testWhile(obj) { | |
let i = 10 | |
while(true) { | |
if (i-- === 0) | |
return true | |
} | |
} | |
testFor(); | |
testWhile(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment