# 3 . What is wrong?


#1



https://www.codecademy.com/courses/spencer-sandbox/0/3?curriculum_id=506324b3a7dffd00020bf661


It says Oops, try again. It looks like you printed out the wrong number of items.
I don't not know what it means or why can you please help?


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


#2

Change 20 to 21 and you should be good. The number you put there says to loop up to but not including that number so it's got to be 1 higher than what you need.


#3

Hi this line

for (var i; i<20; i++)

it's missing something after var i


#4

that as well ^^ .................


#5

Can you please explain what exactly.
I honestly forgot :confused:
I did try to change it to var= i


#6

It should be var i = 1; so it knows what number to start at. i = 1; also works.


#7

Wow i'm just the biggest idiot ever that was literally right in front of my face I remember that now :sweat_smile:
Any way thx ghughes13 and wizmarco.