Errors on 19. Math


#1



https://www.codecademy.com/courses/getting-started-v2/3/2?curriculum_id=506324b3a7dffd00020bf661#


Oops, try again. There was a problem with your syntax.


 ("Jon".length * 2 === 6)
 if
 }
    console.log("The answer makes sense!");
} 
else 
{
    console.log("Error Error Error");
}

https://gyazo.com/029ddaec50b55373ead69c6d9bbbf931


#2

Well, this is just a wrong order :slight_smile:

First we start the if and then we specify the condition of it.

And, block of if statement - console.log("The answer makes sense!"); should be enclosed in { }.

if ("Jon".length * 2 === 6) {
    console.log("The answer makes sense!");
} else {
    console.log("Error Error Error");
}

You can always check correct syntax in the documentation or reference -> http://docs.webplatform.org/wiki/javascript/statements/if_else


#3

Thank you, @factoradic.


#4

You're very welcome :slight_smile:


#5