title: Javascript - Filtering even numbers
body: <p>I would like to filter an array containing zeros (0) whilst capturing them too  .</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var arr1 = [-200, -163, -26, -4, 0, 7, 76];
  
  var evens = arr1.filter(function(x) {
    if (x % 2 === 0 || x === 0) {
      return x;
    }
  })
  
  console.log(evens);</code></pre>
  </div>
  </div>
  </p>
  
  <p>Why do i NOT get zero back in my  'evens'  array?  If zero is not classed as even, shouldn't my </p>
  
  <pre><code>|| x===0
  </code></pre>
  
  <p>statement catch the zero?</p>
  
  <p>Thanks
  Brad</p>