And the good not printing


#1

I think im having a simple syntax issue here? Should print out numbers 1-20 and strings for numbers divisible by 3, 5 and 3&5

for(a=0; a >= 20; a++){

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


#2

look:

for(a=0; a >= 20; a++)

a is zero for the first iteration, which means the condition is false, the loop never runs. Maybe change the loop condition?


#3

Thanks! I corrected the condition and reordered the if/else statement to do FizzBuzz first! On the the next one!


#4