Created
May 10, 2020 00:19
-
-
Save Nathan-Nesbitt/5d3883f75f0ff8dff4130d1a7e9712c8 to your computer and use it in GitHub Desktop.
For Loop
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
/* | |
Prints out the values from 0 to 9 | |
*/ | |
// Initialization, Evaluation, and Increment | |
// all in one line | |
for(var i = 0; i < 10; i++) { | |
console.log(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