My Code isn't printing logging "Buzz" for 5, 10, or 20


Oops, try again. It looks like you printed out the wrong number of items.

for (var i =1 ; i < 21 ; i++) {
    if (i%5===0) {
        if (i%3===0) {
        else if (i%5===0) {
           else if (i%3 != 0) {
           else {


matter of fact its not even logging the number at all. it skips over anything that should be logged as "Buzz"


if this line is true:

if (i%5===0)

the else if and else won't get a execute. Make sense if you think about it:
if true, execute me. Otherwise (else if) execute me. Else if only gets execute if the if or else if before evaluates to true. You might want to redesign your program.


thank you, didnt catch that at first