3. And the good


#1


var numbers = 0;

for(var i = numbers, i < 21 , i++)
{

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


#2

Remember to include the case for "Buzz".


#3

ty so much it works!


#4

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