Created
October 11, 2014 22:05
-
-
Save griffiths/057368d4e179bd0c3c46 to your computer and use it in GitHub Desktop.
Loop Exanple
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
console.log("hello world"); | |
for (var multiplier = 1; multiplier < 11; multiplier++) { | |
console.log(multiplier*6); | |
var star = "*"; | |
for (var i = 0; i < 20; i++) { | |
star = star + "*"; | |
console.log(star); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment