I want to ask about a weird javascript thing. All of these conditions, in my opinion, contradict each other and return false:
- 0 > null
- 0 < null
- 0 == null
- 0 === null
Why does using >= and <= operators return true? >= means gt and <= means lt. They couldn’t be equals. Moreover, “null” has a null value, 0 has a null value and, for the logic 0 > null should return true. Could someone explain me this fact?