I have just run a very simple JavaScript performance test (don\'t ask why). The test declares a variable, but doesn\'t assign anything to it:
var x;
if i think well, they are not the same. so you can't use null instead of undefined.
typeof !== "undefined" vs. != null