11.typeof返回的类型

typeof返回的类型:number、string、boolean、undefined、function、object共6种。
注意:其中Array与null返回的都是object
function(){}与class{}返回的都是function

typeof返回的类型:number、string、boolean、undefined、function、object共6种。
注意:其中Array与null返回的都是object
function(){}与class{}返回的都是function