Is it actually possible to get the Null
data type as a return from the typeof
function - if so what case yields that result, when is a variable actually of the Null
type?
typeof myVAR; //gives me "undefined" before the variable declaration
var myVAR;
typeof myVAR; //also gives me "undefined"
myVAR = null; //assigned the null object
typeof myVAR; //gives me "Object" (which I guess makes sense because `null` is an object and that's what I assigned to the variable)