Categories
Current Searches

The difference between `typeof x !== “undefined”` and `x != null`

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?