📜  获取数组的前 10 项 javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:14.701000             🧑  作者: Mango

代码示例3
let array = ["a", "b", "c", "d", "e"];

// Both first1 and first2 have the same value.
let [first1] = array;
let first2 = array[0];