3... And the good


#1

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

heading

What is wrong with code.


#2

The moment the number is dividable by 3 or 5 the if statement stops (because one of them comes out as true), it never checks if the number is dividable by 3 and 5, that should come first, not last