Reputation: 179
if statement with greater than condition returning true even though value is not greater than.
im having it return the values and it returns "no 54765>100000". hoping someone can help me locate where my mistake is.
if (rev[2] > value) {
document.getElementById("answer").innerHTML =
"no " + rev[2] + ">" + value;
} else {
document.getElementById("answer").innerHTML = "yes";
}
Upvotes: 0
Views: 1655