title: How do I know an array contains all zero(0) in Javascript
body: <p>I have an array. I need to generate an alert if all the array items are 0.
  For example, </p>
  
  <pre><code>if myArray = [0,0,0,0];
  then alert('all zero');
  else
  alert('all are not zero');
  </code></pre>
  
  <p>Thanks.</p>