Q:

Greater than operator not working with if statement

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";
  }

A:

Try this: 
if (parseFloat(rev[2]) > parseFloat(value)) {

