16. Pratice with conditionals


#1

I was wondering if you could help solve this problem.
My apologies if it bothers you.


#2

No conditions after else as it is the default case.


#3

@haxor789 Thank you for the help but my function is not still working.
Thank you in advance for your reply.


#4

You don't have a function there :slightly_smiling:
Could you post your updated code?


I can not see what is wrong
#5

you've probably got it right by now.

But you were missing a curly brace.

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


#6

I don't know if you've gotten it yet, but there should be no condition after else since it's the last statement.
Also, remember to end the block of code that needs to be executed with a semicolon. :slightly_smiling:

if (20 > 10) {
    console.log("This condition is true");
} else {
    console.log("This condition is false");
}