In Python, and maybe in Javascript, the boolean or and and operators return one of the operands, instead of true or false
or
and
true
false
It's called "coalescing". It should behave the same in any browser that claims to be compliant.