0

Help with control flow

prompt the user for a number that is greater than 100 but less than 2000 and store this as a variable named user. write a 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 is not the it should asssign message2 instead. also: user should be a number, try using the parseInt() function. make sure you have an if statement your if statement should have an else attached to it.’) finish the challenge by passing the true clause.) i need to edit: var message1= ‘you are amazingly correct!’; var message2=‘awww, it looks like that number is not correct. try again!’; please help im stuck

13th Aug 2018, 11:35 PM
Ashlyn
Ashlyn - avatar
4 Answers
0
I suggest you to read js tutorial because this is very elementary https://www.sololearn.com/Course/JavaScript/?ref=app
14th Aug 2018, 12:10 AM
KrOW
KrOW - avatar
0
Sorry, didn't understand what the problem is. Could you explain?
14th Aug 2018, 12:13 AM
voidneo
0
hi guys thank you, do i finish the challenge by passing the true clause?
14th Aug 2018, 12:22 AM
Ashlyn
Ashlyn - avatar
0
Following the assignment you posted, you first need to get the user input, store it and check if it's in range 100 - 2000
14th Aug 2018, 12:24 AM
voidneo