False Conditions Keep Evaluating to "True"


#1

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

Hello to all! My condition keeps evaluating to "true." I have changed it several times.

Oops, try again. Your condition evaluated to true! It should evaluate to false.


if( 1 > 18 )
{
    console.log("The condition is false")
}
else
{
    console.log("The condition is true")
}

Thanks so much.


#2

You've got these mixed up.

if( 1 > 18 ) {
    console.log("The condition is false"); //This code runs if 1 > 18 is TRUE
}
else {
    console.log("The condition is true"); //This code runs if 1 > 18 is FALSE
}

You need to switch the console.log statements around.