Stuck...more with conditionals


#1

if(10 < 4)

{
console.log("It's true");
}
else
{
console.log("Its false");
}


Replace this line with your code.


#2

What error are you getting?


#3

Oops, try again. It looks like your if/else statement didn't log "The condition is false" to the console.


#4

The syntax is right. Make sure to type exactly what the directions asked you to or the codecademy interpreter might not accept it.


#5

Oops, try again. It looks like your if/else statement didn't log "The condition is false" to the console.


#6

You are doing everything right. You just need to change the console.log statements to exactly what the lesson says.

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

#7

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