title: how to parse Zero (0) as integer in JavaScript
body: <p>I am working on a basic calculator that takes input like this
      <code>" 100 + 10/2 + 3 + 0 "</code> and returns the output in a separate field.
  when I break this thing into an array zero is not parsed as integer. My code is as following</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 arr = ["100", "+", "0"];
  arr = arr.map(x =&gt; parseInt(x) || x);
  
  console.log(arr);</code></pre>
  </div>
  </div>
  </p>