+ 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.

17th Jul 2018, 12:06 AM
Judas Iscariot
Judas Iscariot - avatar
2 Antworten
+ 1
So what's the question? (What you having trouble with?)
17th Jul 2018, 12:10 AM
Fata1 Err0r
Fata1 Err0r - avatar
+ 1
Example of an IF statement. if( thisConditionIs == true ) { // Do this code block } else { // Do this instead if condition isn't true }
17th Jul 2018, 12:11 AM
Fata1 Err0r
Fata1 Err0r - avatar