a=1; b=true; c="c"; d=function(){ console.log(" is d"); } e={ e1:"is e1"} f=null; g=[1,2,3]; console.log("a typeof="+typeof(a)); console.log("b typeof="+typeof(b)); console.log("c typeof="+typeof(c)); console.log("d typeof="+typeof(d)); console.log("e typeof="+typeof(e)); console.log("f typeof="+typeof(f));
instanceofspa
console.log(null instanceof Object); console.log(Array instanceof Object);
獲得結果:指針