How do i fill in a condition that evaluates to false?


#1


Replace this line with your code.


#2

I'm afraid that I need a little more information if I'm going to be able to help you.

Please paste your code and explain what your having trouble with.


#3

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

}
I keep receiving this message: Oops, try again. It looks like 'golanheight' on line 5 was not defined before it was used. This means either you need to define it, 'golanheight' is spelled incorrectly or you need quotes around 'golanheight'


#4

I fixed it !!! I'm so happy knowing that I can do this .
if ("golanheights".length=100 )
{
console.log("Let's go down the first road!");
}
else
{ console.log("golanheights!")
// What should we do if the condition is false? Fill in here:

}


#5

Good job :slight_smile: I'm glad that you were able to resolve the problem on your own.


#6

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