title: Enumerate through binary number bits in reverse
body: <p>I currently have this loop that takes an integer and prints out 0 or 1 for each bit of it's binary version.</p>
  
  <pre><code>var m = 10;
  for (var i = 0; i &lt; 8; i++) {
    bit = m &amp; 1;
    console.log(bit ? + 1 : 0 );
    m &gt;&gt;= 1;
  }
  </code></pre>
  
  <p>This results in 0 1 0 1 0 0 0 0</p>
  
  <p>How can I get it to loop in reverse? 0 0 0 0 1 0 1 0</p>