...And the good! 3/13


#1

Hi everyone! What am I doing wrong?
Here is my code:

for (a = 1; a < 21; a++) {
if(a % 3 === 0) {
console.log ("Fizz");
} if(a % 5 === 0) {
console.log ("Buzz");
} if(a % 3 === 0 && a % 5 === 0) {
console.log ("FizzBuzz");
}
};

Here is my output:

Fizz
Buzz
Fizz
Fizz
Buzz
Fizz
Fizz
Buzz
FizzBuzz
Fizz
Buzz

Seems right, but it keeps telling me:
Oops, try again. It looks like you printed out the wrong number of items.


#2

Got it...Nevermind))


#3

how did you get it??????/