If a number under 96 is entered than 0 should appear, between 96 and 192 3 should appear, and if the input is equal to or greater than 192 the output should be 6. however in my code for some reason that is not the case, inputs 0 and 1 return 0, input 2-99 returns 6, 100 through 191 returns 0, and 192 and above return 6
here is the code
var number = document.getElementById("width").value;
var text;
if (number >= "192") {
text = "6";
} else if (number >= "96") {
text = "3";
} else {
text = "0";
}
document.getElementById("smallquantity").innerHTML = text;