What\'s the difference between | and || in Javascript?
Furthermore, what\'s the difference between & and &&<
To explain a little more in layman's terms:
&& and || are logical operators. This means they're used for logical comparison;
if (a == 4 && b == 5)
This means "If a equals to four AND b equals to five"
| and & are bitwise operators. They operate on bits in a specific fashion which the wiki article explains in detail:
http://en.wikipedia.org/wiki/Bitwise_operation