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
// Write loop That make seven calls to console.log to display a pyramid of # (Page 37) | |
let triangle = ''; | |
for (let i = 0; i < 7; i++) { | |
triangle += '#'; | |
console.log(triangle); | |
} | |
//Print numbers from 1 to 100. For numbers divisible by 3, print Fizz ; For numbers divisible by 5, print Buzz; For numbers divisible by both, print FizzBuzz (Page 37) | |
let result = ''; |