Skip to content

Instantly share code, notes, and snippets.

View bogdanmoisin's full-sized avatar

Bogdan Moisin bogdanmoisin

View GitHub Profile
//FizzBuzz
// Your code here.
for ( var i = 0; i <= 100; i++) {
var output = ""
if ( i % 3 == 0 ) {
output += "Fizz";
}
@bogdanmoisin
bogdanmoisin / looping-a-triangle
Last active August 29, 2015 14:23
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:
// #
// ##
// ###
// ####
// #####
// ######