3. ...And the Good


#1

I'm not really sure why it says I'm printing the wrong number of items. If you run this it does exactly what I was instructed to do, but apparently not in the code that codecademy wants me to use.

for(x = 1; x <= 20; x++) {
if(x % 3 === 0) {
console.log('Fizz');
}

if(x % 5 === 0) {
    console.log('Buzz');
}

if((x % 3 === 0) && (x % 5 === 0)) {
    console.log('FizzBuzz');
}

else if ((x % 3 !== 0) && (x % 5 !== 0)) {
    console.log(x);
}

};


#2

@shniper1337,

+++++++++++++++++ for loop wrong FIZZ BUZZ condition in DIAGRAM
http://www.codecademy.com/forum_questions/548000e8631fe94491006469

+++++++++++++++++++++++
++ IF statement explained
http://discuss.codecademy.com/t/if-else/12218/2?u=leonhard_wettengmx_n