3. And the good


#1


I keep getting "unexpected token ) ". Any help?


function FizzBuzz () {
    for (i = 1, i < 21, 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)
        }
    }
}
FizzBuzz()


#2

What is the syntax used to separate for loop components? :slight_smile:


#3

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