title: JavaScript comparison failing
body: <p>I'm trying to prompt for, then compare two values:</p>
  
  <pre><code>var x,y;
  x = prompt("enter the first value","");
  x = prompt("enter the second value","");
  
  if( x &gt; y)
  {
    alert("x&gt;y");
  }
  else if(x &lt; y)
  {
    alert("y&gt;x")
  }
  else 
  {
    alert("error");
  }
  </code></pre>
  
  <p>Each time I run this, the <code>alert("error")</code> line is hit. What am I doing wrong?</p>