..and the good!


#1


ERROR: SyntaxError: missing ( before condition

LINK:
https://www.codecademy.com/courses/spencer-sandbox/0/3?curriculum_id=506324b3a7dffd00020bf661#

Not understanding whats wrong .

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


#2

@betablaster15215,
Maybe you should read the syntax in
== the Book ==
https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Instructions/if...else
or
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else


#3

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