It looks like you printed out the wrong number of items. The instructions are : Print out the numbers from 1 - 20. The rules: For numbers divisible by 3, print out "Fizz". For numbers divisible by 5, print out "Buzz". For numbers divisible by both 3 and 5


#1

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

whats wrong in that???
infact the order is coming correct:
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
Fizz
16
17
Fizz
19
Buzz


#2

its solved!!!! i just need to add else in place of if.. thats it...