title: Convert NaN to 0 in JavaScript
body: <p>Is there a way to convert NaN values to 0 without an <em>if</em> statement? Example:</p>
  <pre><code>if (isNaN(a)) a = 0;
  </code></pre>
  <p>It is very annoying to check my variables every time.</p>