Possible Duplicate:
Using bitwise OR 0 to floor a number
Performs a bitwise OR on two expressions,eg:
console.log(12.22|0) // output --->12
where does the decimal go? it's the same as parseInt function
parseInt(12.22) // output --->12
how does it work?