JavaScript and bitwise operators
<p>Why is in JavaScript:</p>

<p><code>console.log('1000' | '1010'); // 1018</code> not '1010'?</p>

<p>and</p>

<p><code>console.log('1000' &amp; '1010'); // 992</code> not '1000'?</p>

<p>What ist the right way for bitwise calculation in JavaScript?</p>