title: Loop through a date range with JavaScript
body: <p>Given two <code>Date()</code> objects, where one is less than the other, how do I loop every day between the dates?</p>
  
  <pre><code>for(loopDate = startDate; loopDate &lt; endDate; loopDate += 1)
  {
  
  }
  </code></pre>
  
  <p>Would this sort of loop work?  But how can I add one day to the loop counter?</p>
  
  <p>Thanks!</p>