Need help in question 16


#1

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

shows the error message


#3

Could you please show us your code so that we can see what you did wrong?


#4

if (10>3)
{
console.log("true")

}
else {
console.log ("false")
}


#5

The program asks you to write a code that logs "The condition is false" to the console. So in that case, you should change the conditions, because ten really is greater than three, and so it is true. Does this help?


#6

You might need to add the semi-colon - ;


#7

Here is an example if (80 > 47)
{
console.log ("The condition is false");
}
else
{
console.log ("The condition is true");
}