[js进阶1]-数据类型
基本数据类型
js 总的有7中数据类型,包括基本类型和引用类型
基本类型 6 种
number
boolean
string
null
undefiend
symbol
- 前5种类型统称为原始类型
- symbol 是es6新增类型,表示独一无二的值
- null和undefined 类型值就是其本身
引用类型
array,function 是对象的子类型
js 总的有7中数据类型,包括基本类型和引用类型
number
boolean
string
null
undefiend
symbol
array,function 是对象的子类型