Skip to content

Instantly share code, notes, and snippets.

View lorenmdavis's full-sized avatar

Loren D lorenmdavis

  • San Diego, Ca
View GitHub Profile
@lorenmdavis
lorenmdavis / FizzBuzz
Created July 31, 2015 21:42
FizzBuzz
var x = 0;
for(var x=0; x<=20; x++){
if(x%3===0){
console.log("Fizz");
}else if(x%5===0){
console.log("Buzz");
}else if(x%3===0 || x%5===0){
console.log("FizzBuzz");
}else{
console.log(x);