L3 FizzBuzz Code


#1

Hi guys and girls,

I can't get this code to work! I keep getting the error

Any ideas?


<img src="//codecademy-discourse.s3.amazonaws.com/original/4X/3/d/a/3da6d41d8762ec475c114de6f204b76a57815587.png" width="450" height="243">


#2

Sorry - code didn't seem to come through then. As below.

for (var i = 0; i < 21; 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);
}
};


#3

should be i++ not 1++

for (var i = 0; i < 21; 1++)<=see

@aldersoncd


#4

Oh man Rcodeman! That is embarrassingly simple. That's for your response!