title: JavaScript: Bitwise shift of long long number
body: <p>I need to bitwise shift a value 64 times in JavaScript. But JavaScript starts rounding after <code>32</code>.</p>
  
  <p>For example:</p>
  
  <pre><code>for(var j = 0; j &lt; 64; j++)
  {
      mask = mask &lt;&lt; 1;
      console.log(mask);
  }
  </code></pre>
  
  <p>This prints value from <code>0</code> to <code>1073741824</code> but then rounds of and starts printing <code>0</code>.</p>