title: How to print only even numbers in a JS array?
body: <p>I cant figure out how to print only even numbers from an array:</p>
  
  <p><code>var arrayAgeList = [27, 35, 135, 45, 25, 28, 24];</code></p>
  
  <p>I have tried a few variations, but they dont work:</p>
  
  <pre class="lang-js prettyprint-override"><code>while (i &lt; arrayAgeList.length) {
    for (i = 1; i &lt; arrayAgeList.length; i++) 
      if (i % 2 === 0)
    }
  }
  </code></pre>