js原始数据类型

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

猜你喜欢

转载自www.cnblogs.com/2237501874-com/p/12697167.html