title: How does a reverse while loop know when to stop in JavaScript?
body: <p>In JavaScript, I have recently came across how reverse while loops are faster.</p>
  
  <p>I have seen them in this form:</p>
  
  <pre><code>var i = someArray.length;
  
  while (i--) {
    console.log(someArray[i]);
  }
  </code></pre>
  
  <p>I tested this out and it stopped once it went through the whole array.</p>
  
  <p>How does it know when to stop once it completes the array?</p>