I am confused on lesson 15


#1

I don't know what I should do. Could someone please help me?


#2

Hi can you post your code and the error that you get ?


#3

When I get the time yes.


#4

if ("First road" === "worse")
{
console.log("Let's go down the first road!");
}
else
{11 < 7}console.log("Eleven is greater than seven")
// What should we do if the condition is false? Fill in
here:
8
9 }


#5

Oops, try again. There was a problem with your syntax.


#6

your code should have that strutture

if (condition) {

}
else {

}

the else satement doesn't take a condition


#7

What do you mean? Now it says: Oops, try again. Make sure you print a string to the console in the false case, and that you typed the condition correctly.


#8

here the code they give you

if ( ) 
{
    console.log("Let's go down the first road!");
}
else 
{
    // What should we do if the condition is false? Fill in here:
    
}

your if statement is fine but your else statement should only have the console.log() like that

for example

else {
    // What should we do if the condition is false? Fill in here:
    console.log("The if statment is false")
}

#9

I got it now. Thanks!