"..And the Good!" (printed out wrong number?)


#1

I've looked everywhere for an answer, I've reordered all the code so FizzBuzz evaluates first, but I can't figure out what's wrong? It keeps telling me that I'm printing out the wrong number of objects. this is my code:

for (var i = 0; i > 21; i++) {
if (i % 3 === 0 && i % 5 === 0) {
console.log("FizzBuzz");
} else if (i % 5 === 0) {
console.log("Buzz");
} else if (i % 3 === 0) {
console.log("Fizz");
} else {
console.log(i);
}
}


#2

i will never be greater than 21. :slight_smile:


#3

Oh! Thanks, I never would've noticed that. I appreciate it.