Therefore, in most cases, I was able to use something similar to these lines, but Javascript gave me this strange result.
If I take some value and it turns out to be undefined, compared to an integer, it does not seem less or more than any number. Why is this?
if(undefined < 1 || undefined >= 1) alert("yes"); else alert("no"); //this always alerts no
Jsfiddle
source share