28. Having a hard time


#1



I honestly have no clue how to fix this... Please help.

Stuck at #28

Error message: "Oops, try again. It looks like you didn't log the correct string to the console! Make sure to use exactly the string shown."

Code:

var myName = "Nathan";
console.log(myName.length);

if (myName.length > 3){console.log("I finished my first course!")
}
else
{console.log("I can't code, oh well")
}


#2

You shouldn't log your name. You should just log the first thing in the if statement. Not the myName.length.


#3

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