I ask about it because if you try it in Java:
boolean a = true, b = false;
boolean c = a | b;
Then in c
variable will be true
value. But if we run similar code in JS:
var a = false, b = true;
var c = a | b;
Then in c
variable will be 1
value.
How to explain this strange behavior?