Introduction to Objects I - ...And the good!


#1


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

Hello, i can't find what I'm doing wrong in this excercise
Can anyone please help me?


#2

looks like one of your i statements is off. Try changing one of those and see if that fixes your error


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.