title: Does JavaScript support 64-bit integers?
body: <p>I have the following code:</p>
  
  <pre><code>var str = "0x4000000000000000";   //4611686018427387904 decimal
  var val = parseInt(str);
  alert(val);
  </code></pre>
  
  <p>I get this value: "<code>4611686018427388000</code>", which is <code>0x4000000000000060</code></p>
  
  <p>I was wondering if JavaScript is mishandling 64-bit integers or am I doing something wrong?</p>