✨陣列寫法
let colors = ["red","black","pink"];
console.log(colors);
✨length:抓取陣列長度
console.log(colors.length);
✨push():在陣列末端加入一個新的值
colors.push('blue');
✨讀取到特定的值
const colors = ['red', 'yellow', 'black'];
索引值: 0 1 2
console.log(colors[1]);
在指定位置賦予值
colors[10] = 'white';
取得陣列最後一個值
colors[colors.length-1];
課程期間請在 Zoom 上作答