一.数字number
var test=123
console.log(typeof( test));///number
二.字符串string
var test='test'
console.log(typeof( test));string
三.布尔值boolean
var test=false
console.log(typeof( test));boolean
四.空值null
var test=null
console.log(typeof( test));///object
五.未定义undefine
var test
console.log(typeof( test));/undefine
六.对象object
var test={}
console.log(typeof( test));object