let arr = [1,2,3]
console.log(arr);
//对象和数组使用typeof操作符返回的都是Object,
//所以不能使用typeof操作符判断一个数组的数据类型
console.log(typeof arr);//Object
//判断一个数组类型有下面三种方法
//1、instanceof操作符
console.log(arr instanceof Array);//true
//2、Array.isArray()
console.log(Array.isArray(arr));//true
//3、Array.prototype.isPrototypeOf()
console.log(Array.prototype.isPrototypeOf(arr));//true