#3 ...and the good


#1

Why do most people who ask a question about this one have an array in their answer? I used the following and passed.


for (var x = 1; x < 21; x++)

if (x % 3 === 0 && x % 5 === 0) {
    console.log("FizzBuzz");    
}
else if (x % 5 === 0){
    console.log("Buzz");
}
else if( x % 3 === 0) {
    console.log("Fizz");
}
else {
    console.log(x);
}


#2

@ghughes13
If you have a problem, please post your link + error message + code.
Otherwise, please not start a new topic with the answer. This forum is dedicated for people who needs help. If you have the correct answer, then please help them in their own topic instead of starting a new thread with no problem.