var fn=function(){},ar=[],ob={},str='',
nmb=0,ud=undefined,nl=null,
bl=false,dt=new Date();
console.log(Object.prototype.toString.call(fn));//[object Function]
console.log(Object.prototype.toString.call(ar));//[object Array]
console.log(Object.prototype.toString.call(ob));//[object Object]
console.log(Object.prototype.toString.call(str));//[object String]
console.log(Object.prototype.toString.call(nmb));//[object Number]
console.log(Object.prototype.toString.call(ud));//[object Undefined]
console.log(Object.prototype.toString.call(nl));//[object Null]
console.log(Object.prototype.toString.call(bl));//[object Boolean]
console.log(Object.prototype.toString.call(dt));//[object Date]
五种基本类型分别是String,Number,Boolean,Undefined, Null。