title: Greater than returns wrong value on numbers lower then 100
body: <p>This is my first JavaScript project, so I'm sure this code isn't pretty, and could be written in a much better way, but that aside, I've encountered a problem I just don't understand. I'm sure it's just a bug I've made myself, but I just simply can't find it.</p>
  <p>The '&gt;' (greater than) operator works fine on numbers over 100, but stops working when it gets to 100. For some reason 100 &gt; 99 returns false?</p>
  <p><a href="https://jsbin.com/vigocu/edit?console,output" rel="nofollow noreferrer">https://jsbin.com/vigocu/edit?console,output</a></p>
  <p>Move the slider to the right, and then slowly to the left, and you will see it returning &quot;true&quot; until it reaches 100. From there it returns &quot;false&quot;</p>
  <pre><code>function getSliderInput(inputSliderId) {
    var backSwingArray = [100];
    var downSwingArray = [];
  
  
    document.querySelector('#' + inputSliderId).addEventListener('input', fillArray , false);
  
  function fillArray() {
  
    if (isNaN(downSwingArray[downSwingArray.length - 1]) &amp;&amp; backSwingArray[backSwingArray.length - 1] &lt; this.value) {
      backSwingArray.push(this.value);
    } else if (downSwingArray[downSwingArray.length - 1] &gt; this.value || isNaN(downSwingArray[downSwingArray.length - 1])){
      console.log('Is ' + downSwingArray[downSwingArray.length - 1] + ' &gt; ' + this.value + ' return ' + (downSwingArray[downSwingArray.length - 1] &gt; this.value));
      downSwingArray.push(this.value);
    } else {
      console.log('Is ' + downSwingArray[downSwingArray.length - 1] + ' &gt; ' + this.value + ' return ' + (downSwingArray[downSwingArray.length - 1] &gt; this.value));
      return;
    }
  }
  }
  </code></pre>