Skip to content

Instantly share code, notes, and snippets.

View GSKang94's full-sized avatar
🍎
Learning iOS

Gagandeep Singh GSKang94

🍎
Learning iOS
View GitHub Profile
@GSKang94
GSKang94 / Eloquent.js
Last active June 28, 2021 06:31
Eloquent javaScript (3rd ed.) exercises
// 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 = '';