title: While Loops vs. For Loops in JavaScript?
body: <p>What are the benefits of using a <code>while</code> loop over a <code>for</code> loop?  When I'm iterating through arrays, I always use a <code>for</code> loop so I wondered if I'm missing something here.</p>
  
  <p>I've never had a situation where a <code>for</code> loop doesn't do the job, but I'm worried that I may be picking up bad habits here. My usage of loops has been with regards to elements on web pages, stuff in animations, etc..</p>