How javascript treat large integers (more than 52 bits)?
<p>Consider this code (node v5.0.0)</p>

<pre><code>const a = Math.pow(2, 53)
const b = Math.pow(2, 53) + 1
const c = Math.pow(2, 53) + 2

console.log(a === b) // true
console.log(a === c) // false
</code></pre>

<p>Why <code>a === b</code> is true?</p>

<p>What is the maximum integer value javascript can handle?</p>

<p>I'm implementing random integer generator up to 2^64. Is there any pitfall I should be aware of?</p>