javascript基本数据类型有 string number boolean undefined null
复杂数据类型 object
js变量是松散型的, 可以用typeof来检测数据类型
typeof 123 //Number
typeof 'abc' //string
typeof true //boolean
typeof undefined //undefined
typeof null //object
typeof { } typeof [] //object
typeof console.log() //function