title: How to see if variable is < or equal to 0
body: <p>I need to see if variable is &lt; or equal to 0</p>
  
  <p>Heres my code im working with.
  theres other behind the scenes stuff to do with lives but all i need to know
  is how to see its value (more below)</p>
  
  <pre><code>function beginCountup() {
      var display = document.getElementById("display"),
          i = 0;
  
      intervalID = setInterval(function () {
          display.textContent = ++i;
      }, 26);
  
      lives = lives - 1;
      var lcount = document.getElementById('lives')
      lcount.innerHTML = lives;
  }
  </code></pre>
  
  <p>So i need to see if lives &lt; or equal to 0 if so i need it to target ElementById('lives')
  and make it say game over thanks!</p>