Super close?


#1


I think I'm really close, but I can't find my mistake! 

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

console.log(fizzBuzz);


#2

You're right about being close!

Change

console.log(fizzBuzz);

to

console.log(fizzBuzz());

(because you're logging the result of a function, not the value of a variable)

:stuck_out_tongue:


#3