1、原始类型(number、boolean、string、null、undefined)
2、object类型(function、Date、Array....)
3、数据类型转换(隐式转换)
“this is string”+1.23 转字符类型,字符串拼接
“56”-12 转数据类型进行减法运算 44
"1.23"==1.23 转数据类型返回true
true==1 转数字类型
4、数据类型检测
typeof 100===>number
typeof function(){}===>function
[1,2] instanceof Array 返回true
new Object() instanceof Object 返回true
Object.prototype.toString.apply([1,2]) 返回"[object Array]"
Object.prototype.toString.apply(function(){}) 返回"[object Function]"