Created
January 24, 2014 13:39
-
-
Save slopeofhope81/8597398 to your computer and use it in GitHub Desktop.
Print out ten lines. On the first line there is one '#' character. On the second there are two. And so on.
This file contains 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
//Print out ten lines. On the first line there is one '#' character. On the second there are two. And so on. | |
var string = "#"; | |
var i = 0; | |
var line ="" | |
while (10 > i) { | |
line += string | |
document.write(line+"\n"); | |
i++; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment