How does work this operator is JavaScript. I often found this operator in two context:
//context 1
function(e){
e = e || window.event;
//context 2
if(a || b)
I know the type of return value of this operator in C or C++ is boolean. But I can't figure out what this operator does is JS.