javascript数据类型
原始数据类型(基本数据类型):
1. number:数字。整数/小数/NaN(not a number 一个不是数字的数字类型)2. string :字符串。字符串"abc" "a” 'abc'
3. boolean: true和false
4. null :一个对象为空的占位符
5. undefined :未定义。如果一个变量没有给初始化值,则会被默认赋值为undefined
引用数据类型:对象
原始数据类型(基本数据类型):
1. number:数字。整数/小数/NaN(not a number 一个不是数字的数字类型)2. string :字符串。字符串"abc" "a” 'abc'
3. boolean: true和false
4. null :一个对象为空的占位符
5. undefined :未定义。如果一个变量没有给初始化值,则会被默认赋值为undefined
引用数据类型:对象