Categories Current Searches The difference between `typeof x !== “undefined”` and `x != null` Post author By Mike Nova Post date May 26, 2026 I can’t find any difference between typeof somevar == ‘undefined’ and typeof somevar === ‘undefined’, because typeof always returns string. For null it will return ‘object’. Or could be that I am wrong?