Skip to content

Instantly share code, notes, and snippets.

@slopeofhope81
Created January 24, 2014 13:39
Show Gist options
  • Save slopeofhope81/8597398 to your computer and use it in GitHub Desktop.
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.
//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