Where expressions using relational operators are involved, the Abstract Relational Comparison Algorithm is used to evaluate the operands, then the result is converted to
In the comparison algorithm, step 3a converts
NaN. In step 3c it says that comparing
NaN to anything returns undefined.
In the steps for say the Less-than Operator, a result of
undefined is converted to false.
So for the if statements in the OP, every test returns
false since they are all relational operators that all use the abstract relational comparison algorithm and one of the operands is