Created
May 10, 2020 00:04
-
-
Save Nathan-Nesbitt/e3a9d88187e297ad8533d82cb79fdcf3 to your computer and use it in GitHub Desktop.
While Loop Example
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
/* | |
This prints out the numbers from 0 to 9 | |
*/ | |
// Initialize | |
var i = 0; | |
// Evaluate | |
while(i < 10) { | |
console.log(i); | |
// Increment | |
i++; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample code for https://nathan.nesbitt.ca/blog-posts/IntroductionToJavascript.html