Null
実際に関数からの戻り値としてデータ型を取得することは可能ですか?typeof
もしそうなら、どのような場合にその結果が得られますか?変数が実際にその Null
型になるのはいつですか?
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)