title: Getting NaN Instead of Number
body: <p>I am having a small problem with the code below, instead of a number I am getting <code>NaN</code>. What's wrong?</p>
  
  <pre><code>for (var i = 0; i&lt;100; i++) {
      x = i ^ i
      result = x + result;
  }
  var y = result - (result ^ result);
  console.log(y);
  </code></pre>