Skip to content

Instantly share code, notes, and snippets.

@ramidem
Created February 18, 2017 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramidem/efec8b983218da31751fc8c23a2bf48f to your computer and use it in GitHub Desktop.
Save ramidem/efec8b983218da31751fc8c23a2bf48f to your computer and use it in GitHub Desktop.
My solution for the Eloquent JavaScript's Chapter 02 exercises.
// Looping a Triangle
let count = 1;
let hash = "#";
while (count <= 7) {
document.write(hash + "<br>");
count += 1;
hash += "#";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment