1.解构赋值-数组篇 //Destrcturing(解构) //ES5 /* var a = 1; var b = 2; var c = 3; */ //ES6 var [a,b,c] = [1,2,3];console.log(b); //demo2let [ foo, [ [bar], base ]] = [ 1, [ [2], 3 ]]; console.log(bar);//2console.log(base);//3 //demo3let [,a,] = [1,2,3];console…