How to print binary numbers digit by digit in javascript? : <p>Say I have a binary number in javascript:</p>

<pre><code>var myNumber = 0b0001110;
</code></pre>

<p>How do I print it digit by digit? It would output this:</p>

<pre><code>0
0
0
1
1
1
0
</code></pre>

<p>I tried to console <code>String(myNumber).charAt(n)</code> , with n being a given position, but it didn't work, also I don't want it to be converted to string. I want the decimal digits 0 and 1.<br>I'm asking for a way to print the numbers, but my ultimate goal here is to have access to them.</p>
