title: Storing 30+ flags in a single integer
body: <p>I have to store more than 30 flags(0/1) into a single integer. I can able to create 30 flag masks in Javascript using Bitwise operator like below</p>
  
  <pre><code>var FLAG_1 = 1 &lt;&lt; 0; // 1
  var FLAG_2 = 1 &lt;&lt; 1; // 2
  ...
  ...
  var FLAG_30 = 1 &lt;&lt; 30;
  
  var user1 = FLAG_1 | FLAG_16;
  
  console.log(FLAG_1 &amp; user1); // true 
  </code></pre>
  
  <p>This works fine. But I can't create more than 30 flags because <code>1 &lt;&lt; 31</code> goes in reverse(compliment or negative number). </p>
  
  <p>Is there any way to do this ?</p>