Stuck in a control flow challenge -" Finish the challenge by passing the true clause.')"
Hey there, I'm totally lost with this challenge... Prompt the user for a number that is greater 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 is not then it should assign message2 instead. My code: var message1 = 'You are amazingly correct!'; var message2 = 'Awww, it looks like that number is not correct. Try again!'; var user = Number('1000'); if (user>100 && user<2000) { console.log('You are amazingly correct!'); } else { console.log('Awww, it looks like that number is not correct. Try again!'); } EVERYTHING runs except I can't figure out the error: Finish the challenge by passing the true clause.') What am I doing wrong?