JavaScript 声明数组
声明数组1.数组字面量let arr1 = [] //[]let arr2 = [1,2,3] //[1,2,3]2.Array 构造函数let arr3 = new Array() //[]let arr4 = new Array(3) //[,,]let arr5 = new Array(1,2,3) //[1,2,3]let arr5 = new Array(3).fill(true) //[true,true,true]如果参数传一个正整数n,则会创建