13/3 ...and the good


#1

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

im getting an unexpected object ) error whats wrong?


#2

First, I would recommend spacing and indenting and stuff like that so that it is easier for you and others to read your code
If you don't do it this time try to practice it in later programming


#3

Should be i++ not i==

Put a semi colon at the end of your console.log lines and that should pass.


#4

Sorry thats what it looked like when I pasted it. It's indented in the machine.


#5

Thank you for the help. I have no idea why I put i==.