1instanceofNumberfalsevar a =newNumber(10)
a instanceofNumbertrue'1'instanceofStringfalsevar b =newString('1')
b instanceofStringtrue//注意使用自变量创建的基本数据类型无法判断let b ={a:1}
b instanceofObjecttrue[]instanceofObjecttrue[]instanceofArraytrue//构造函数创建classCAT{constructor(name){this.name = name,this.type ='cat'}}let cata =newCAT('haha')
cata instanceofCATtrue