+ 1
Need help with this question
-than 100 but less than 2000 and store this as a variable named “user” -write an if statement that checks to see if “user” is greater than 100 and less than 2000 -if it is then it should assign message1 to a variable named result. If it not then it should assign message2 instead. var message1 = “you are amazing” var message2 = “aww, it looks like that number is not correct.
2 Respuestas
+ 1
So what's the question? (What you having trouble with?)
+ 1
Example of an IF statement.
if( thisConditionIs == true )
{
// Do this code block
}
else
{
// Do this instead if condition isn't true
}