11.typeof返回的类型

 typeof返回的类型:number、string、boolean、undefined、function、object共6种。

注意:其中Array与null返回的都是object
function(){}与class{}返回的都是function

 

posted @ 2021-12-29 10:38  不爱吃小红薯的小橘子  阅读(54)  评论(0)    收藏  举报