数组不是Javascript中的数据类型?

ajs*_*sie 4 javascript arrays types

根据 Professional Javascript for Web Developers,数组不是 Javascript 中的数据类型:

\n\n
\xe2\x9d\x91   \xe2\x80\x9cundefined\xe2\x80\x9d if the value is undefined \n\xe2\x9d\x91   \xe2\x80\x9cboolean\xe2\x80\x9d if the value is a Boolean \n\xe2\x9d\x91   \xe2\x80\x9cstring\xe2\x80\x9d if the value is a string \n\xe2\x9d\x91   \xe2\x80\x9cnumber\xe2\x80\x9d if the value is a number\n\xe2\x9d\x91   \xe2\x80\x9cobject\xe2\x80\x9d if the value is an object or null \n\xe2\x9d\x91   \xe2\x80\x9cfunction\xe2\x80\x9d if the value is a function\n
Run Code Online (Sandbox Code Playgroud)\n\n

那是对的吗?

\n

Nic*_*ver 5

这是正确的,Array只是 的后代object。请注意,尽管它确实覆盖了一些内容,例如.toString()在数组中以逗号列表打印其成员,而不是"[Object object]"像普通对象那样。