1const list = ['apple', 'banana', 'orange', 'strawberry']
2const size = 3
3const items = list.slice(0, size) // res: ['apple', 'banana', 'orange']
1let array = ["a", "b", "c", "d", "e"];
2
3// Both first1 and first2 have the same value.
4let [first1] = array;
5let first2 = array[0];