Lesson 19 - Math confusing error message


#1


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


I keep getting "Oops, try again. Make sure your if/else statement evaluates to true!" however the screen displays my console.log with the true evaluation, which doesnt make sense. If it displays the true evaluation then surely the if/else staement evaluates to true.

Thanks in advance.


if ("Jon".length * 2 / (2+1) ===2 )
{
    console.log("Error Error Error");
} 
else 
{
    console.log("Lachie Loses")
}


#2

The code checker is looking for "The answer makes sense!" to be logged. It isn't smart enough to expect that you would remove that.

You can use the Reset code button to go at it again.


#3

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