基本数据类型:String Number boolean undefined null
对象引用类型:Object Array Function(可执行),其中数组和函数都是特别的对象
判断:
typeof: 判断数据类型返回的是字符串,并且字符串的内容是小写的,它只要遇见对象一律返回Object,所以分辨不出null、Array和object,但是能分辨出Function
instanceof : 判断对象的具体类型 a(实例对象) instanceof b(构造函数)
=== : 只能判断undefined和null
console.log(undefined == null)//true
console.log