I have a simple if statement that determines if the number entered in a text input is greater than 150. It works as long as the number entered is 3 digits. However if someone enters 60 in the input box, which is less than 150, the if statement is true because it puts a 0 at the end and makes the 60 a 600. My code for my if statement is below:
I dont think you should be using "150"
putting quotes around the number makes it a string object and comparing strings with numbers is generally not a good idea.
Also, how do you know that its adding a "0" to the end and making it 600?