数据类型
1.undefined和null
2.number
NaN是其中特殊的一种
3.字符串
4.bool
NaN和undefined参与运算,结果也会是NaA。
Number.isNaN()判断是不是NaN
undefined用===判断
NaN和任何数据都不一样,包括自己
模板字符串用反引号标识
数值转化为字符串:tostring,string
字符串转化为数值:parseInt(),parseFloar()
!!转化为boolean
Boolean()
数据类型
1.undefined和null
2.number
NaN是其中特殊的一种
3.字符串
4.bool
NaN和undefined参与运算,结果也会是NaA。
Number.isNaN()判断是不是NaN
undefined用===判断
NaN和任何数据都不一样,包括自己
模板字符串用反引号标识
数值转化为字符串:tostring,string
字符串转化为数值:parseInt(),parseFloar()
!!转化为boolean
Boolean()