My code isn't working


#1


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


the code says there is a syntax error and i checked over the code but could not find the mistake
this is my code:

if("Jon".length * 2 / (2+1) === )
{
console.log("The answer makes sense!");
}
else {console.log("condition is true") }


Replace this line with your code.


#2

Codecademy's js environment doesn't provide much information in its error messages, running it in another interpreter can sometimes tell you more:

$ xsel -b | node    # feed clipboard content into nodejs
[stdin]:1
if("Jon".length * 2 / (2+1) === )
                                ^
SyntaxError: Unexpected token )

#3

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