...And the Good! - Why isn't this working? -


#1

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

Why isn't this working? It says "SyntaxError: Unexpected number" every time I run the code


#2

Doesn't that seem to suggest that you have a number in a place where it was not expected? What can you do about that?