特牛网址导航

你知道 typeof null为什么是 object 吗?-CSDN博客

网友收藏
typeof 运算符对基本数据类型的运算:typeof 'str' // 'string'typeof NaN // 'number'typeof 1 // 'number'typeof true // 'boolean'typeof undefined // 'undefined'typeof Symbol() // 'symbol'typeof null // 'object'null作为一个基本数据类型为什么会被typeof运算符识别为object类型呢?这是因为javascrip_typeof null
标签:typeof null