Javascript help, 28. Conclusion: Part 2


#1



I cant get it to work, the error message I get tis following;
Oops, try again. There was a problem with your syntax.
Any suggestions?

console.log("Habibie".length)
if ("Habibie" > 5)
{ console.log("I finished my first course!"));
}
else {
    console.log("Try again");
}

#2

You have one too many closing parenthesis. :slight_smile:


#3

Thank you for answering so fast! I did as you said, but I got the error Oops, try again. It looks like you didn't log the correct string to the console! Make sure to use exactly the string shown.


#4

Here is a basic outline I think you should follow to fix your problem :smiley:

 if (whatever)
{
    console.log("whatever");
}
else (whatever)
{
    console.log("whatever!");
}

#5

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