Help with 16 more practice with conditions


#1

here is my code whats wrong with it ?

if ( 6 > 3 )
{
console.log("condition is true");

im new to this and i have no idea what to do.. HELP please


#2

Hi is missing the else statement


#3

thank you i added the else statement, but i cant get it. say problem with your syntax and unexpected token } help ?


#4

if( 10 < 3 )
console.log("the condition is true")
}
(else)
{
( 10 <3 )
}
console.log("the condition is false")


#5

that is what i have now. am i just being stupid whats wrong with it.


#6

Take else out of the ( )

you can't have another comparison in the else area.

remove the ( 10 < 3 )

and just have console.log("the condition is false") between the else { here }

if (10 < 3) { <--- you were also missing this opening brace 
console.log("the condition is true")
} else {
console.log("the condition is false")
};

#7

thank you so much it worked