const a=[] console.log(a.constructor) console.log( a instanceof Array) var str=Object.prototype.toString.call(a) console.log(str) var arr=new Array(1,2,3) console.log(arr)
运行结果