js original types are there? null is object?

Original Type:

undefinednullstringnumberbooleansymbol(es6新增)

null is not an object:

nullIn fact, not an object, even though typeof nullthe output is object, but this is actually a bug. Used in the original version is 32 js system, in order to consider the type of performance information stored in the status variable, 000the beginning indicates the type of object, but nullall 0s, and therefore nullis judged as the object type.

Guess you like

Origin blog.csdn.net/weixin_33965305/article/details/90788632