....And the good!


#1


ReferenceError: Invalid left-hand side expression in postfix operation??


for (var i = 1; i < 20; 1++) {
    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

in your for loop, 1++? i would increase i


#3

Oh cheers Fam!!!!!!!!!!!!!!!!!!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.