Skip to content

Instantly share code, notes, and snippets.

@bogdanmoisin
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save bogdanmoisin/833961376878b8b19934 to your computer and use it in GitHub Desktop.

Select an option

Save bogdanmoisin/833961376878b8b19934 to your computer and use it in GitHub Desktop.
Eloquent Javascript Solutions
//Eloquent javascript book exercises
// Your code here.
//Write a loop that makes seven calls to console.log to output the following triangle:
// #
// ##
// ###
// ####
// #####
// ######
// #######
//
for ( var str ="#"; str.length < 8; str+= "#") {
console.log (str);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment