nan是非数字类型,返回的是一个非数值的类型
alert(typeof (NaN)) ——> number
alert(typeof 2) ——>number
alert(typeof {})——> object
alert(typeof [])——> object
alert(typeof null) ——> object
alert (typeof undefined) —> undefined
alert (typeof object) ——>function
优先级:
变量 > 函数> 参数 > 提升
相关文章: