Skip to content

Instantly share code, notes, and snippets.

@harryadel
Last active August 26, 2016 19:11
Show Gist options
  • Save harryadel/d41dca4c577a79ab79eb6fd8e1e9a878 to your computer and use it in GitHub Desktop.
Save harryadel/d41dca4c577a79ab79eb6fd8e1e9a878 to your computer and use it in GitHub Desktop.
/*
My answer for exercise 'Looping a triangle'
in Eloquent JavaScript Second Edition
Chapter 2 Program Structure
*/
var output = "";
for(var i = 1; i < 8; i++) {
console.log(output += "#");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment