Objects introduction


#1

it's saying "It looks like you printed out the wrong number of items"..where i went wrong?

for(i=1;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

HI you should print the number from 1 to 20

In your for loop

for(i=1;i<20;i++)

you are printing the numner from 1 to 19, since you put i < 20


#3

trying using this instead

for(i=1; i<=20;i++){
}