Last active
August 29, 2015 14:23
-
-
Save bogdanmoisin/833961376878b8b19934 to your computer and use it in GitHub Desktop.
Eloquent Javascript Solutions
This file contains hidden or 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
| //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