Oops, try again. You printed Fizz when you should have printed FizzBuzz


#1

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("FizzBuzz");
} else {
console.log(i);
}


#2

Hello,

Please check out this thread: Stuck on 3.

Thank you! :slight_smile:


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.