3. ...And the good!


#1

Can´t find the mistake:

for(var i = 0; i < 19; i++){
if(i % 3 = 0){console.log("Fizz");}
else if(i % 5 = 0){console.log("Buzz");}
else if(i % 5 = 0 && i % 3 = 0){console.log("FizzBuzz");}
else{console.log(i);}
}


#2

Found the mistake. Line 4 has to be line 2 and "var i = 1; i <= 20; i++"