A Wrong number of items


#1

Hey there,
you find my code below. I Keep getting the "Oops, try again. It looks like you printed out the wrong number of items. " error and I don't get why.

var count = function(){
for(i=1; i<=20;i++){
if(i%3 ===0 || i%5 === 0){
if(i%3 === 0 && i%5 === 0){
console.log("FizzBuzz");
}
else if(i%3 === 0 && i%5 ==!0){
console.log("Fizz");
}
else if(i%5 === 0 && i%3 ==!0){
console.log("Buzz");
}
}
else{
console.log(i);
}
}
};


#2

a function only execute when you call it, add a function call

i don't see why you do this:

i%5 ==!0

but if you, do it right, ! should come first:

i%5 != 0

same goes for buzz obviously.


#3

Thank you. :):heart_eyes::grinning:


#4