Javascript: what's difference between | and ||?
<p>I'm looking at some Javascript code that is:</p>

<pre><code>if ( a&gt;2 | b&gt;4 ) { ... }
</code></pre>

<p>(ignore the ... above).  What's the | doing? I assume it's logical OR, but all the references I could find online speak about ||, and I can't find anything mentioning just |. Thanks in advance</p>
