"FizzBuzz"


#1

for (var i=1, i<21, 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);
}
};
Can help explain what is wrong with my code.


#2

We never write a ; before an else.


#3

thank you all good now