Not sure what is wrong? Seems correct


#1

I keep on getting a error message, but I think I followed the instructions perfectly?

error message:

Oops, try again. It looks like you printed out the wrong number of items.

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


#2

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

}

0 will print FizzBuzz, but will also add to the number of outputs (21) instead of 20.


#4