3. ...and the good


#1

For some reason I keep getting the value of fizz only, and I can't seem to figure out why

for (var i = 1; i <= 20; i++); {

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


#2

try to edit you if statement to ((i % 3) === 0 || (i % 5) === 0)

&& stands for "and"
|| stands for "or"


#3

That printed FizzBuzz, but now I have the error "It looks like you printed out the wrong number of items"


#4

there is one extra ; can you spot it?