Stuck on 28


#1

// Not sure where to begin? Check the Hint
if ("jonh".length === 4)
{
console.log.("yes")
}
else
{
console.log("no");
}


#2

You have an extra . after the log part remove that it, it will work.


#3

still does not work says 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

Oh, you need to copy the string given to you in the instructions. You need to use that rather than your own.


#5

tried // Not sure where to begin? Check the Hint
if ("jonh".length === 4)
{
console.log("yes".substring(0,2));
}
else
{
console.log("no".substring(0,0));
}

does not seem to work


#6

Write your own if/else statement which you've done so thats fine.

BUT

The only instruction is that the result of evaluating the statement is a log to the console of "I finished my first course!".

Thats what you need your answer to be not the substring of yes or no

This was my answer that allowed me to pass

var myName = "Ben";

if (myName.length > 2)
{
console.log("I finished my first course!");
}
else {

console.log ("noooooooo");
}


#7

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

Here is my code for the exercise:

// Not sure where to begin? Check the Hint!
if (10 >=2)
{
console.log("This answer is true"); }
else
{
console.log("You are really out of your mind");
}

Not sure where the error is.


#8

@codejumper43464

If you read above, there is one thing you need to do.


#9

I already completed the exercise. I should have just looked at the instructions. My bad haha. Thank you for responding though.