The OR Operator (|) in Javascript does the same as parseInt?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/7487977/using-bitwise-or-0-to-floor-a-number">Using bitwise OR 0 to floor a number</a>  </p>
</blockquote>



<p>Performs a bitwise OR on two expressions,eg:</p>

<pre><code>console.log(12.22|0) // output ---&gt;12
</code></pre>

<p>where does the decimal go?
it's the same as parseInt function</p>

<pre><code>parseInt(12.22)  // output ---&gt;12
</code></pre>

<p>how does it work?</p>
