Created
December 12, 2015 00:54
-
-
Save Nik19872/0f31023bbd2bd7d10bd4 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
var total =0; | |
var limit = 10; | |
for (var i = 0; i < 10; i++ ){ | |
total += i; | |
// log the numbers 0 through 9 | |
} | |
console.log(total); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment