The following puzzle has been posted on Reddit by davvblack: What are the values of x and y, given the following interaction?
> x === y
> 1/x > 1/y
is +0, y
+0 and -0 are the only two values that are not the same, but are still considered strictly equal . They can only be distinguished indirectly, by applying a mathematical operation to them that produces distinguishable results. Dividing 1 by zero is one of several operations that does so:
The infinities are distinguishable:
> -Infinity === Infinity