title: Javascript string/integer comparisons
body: <p>I store some parameters client-side in HTML and then need to compare them as integers. Unfortunately I have come across a serious bug that I cannot explain. The bug seems to be that my JS reads parameters as strings rather than integers, causing my integer comparisons to fail.</p>
  <p>I have generated a small example of the error, which I also can't explain. The following returns 'true' when run:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>console.log("2" &gt; "10")</code></pre>
  </div>
  </div>
  </p>