My brain is about to explode, but i love it...stuck at 28


#1

i dont understand what i am doing wrong?? i am thinking on doing this course again,
my code below.

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

help, thanks


#2

URL to exercise: https://www.codecademy.com/en/courses/getting-started-v2/4/5

When I run your code, it logs true to the console. Do you understand why?


#3

sorry , i do know it is true, but why i am getting a error


#4

You are getting an error because you are logging the true statement but the exercise wants you to log the else statement -- the code that runs when your if's (condition) is false.

How can you make your condition false?


#5

wow, i was not realizing that. i have done it :grin:
thank you for opening my eyes ...


#6