JavaScript数据类型的分类和判断
基本(值)类型
* Number —– 任意数值 ——– typeof
* String —– 任意字符串 —— typeof
* Boolean —- true/false —– typeof
* undefined — undefined —– typeof/===
* null ——– null ———- ===
对象(引用)类型
* Object —– typeof/instanceof
* Array —— instanceof
* Function —- typeof