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
//size is the dimension of the square grid | |
var size = 8, | |
white = " ", | |
black = "#", | |
rowE = "", | |
rowO = "", | |
grid = ""; | |
//even grid row | |
for ( var x = 0 ; x < size; x++){ | |
if (x % 2 === 0){ |
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
var x = 0, num = 0; | |
while (x<100){ | |
num++; | |
if((num%3) === 0 && (num%5) !== 0 ){ | |
console.log("Fizz"); | |
}else if((num%3) !== 0 && (num%5) === 0){ | |
console.log("Buzz"); | |
}else if((num%3) === 0 && (num%5) === 0){ | |
console.log("FizzBuzz"); | |
}else{ |
NewerOlder