JavaScript Demo: Array.shift(). 10. 1. const array1 = [1, 2, 3];. 2. . 3. const firstElement = array1.shift(); ... expected output: Array [2, 3].
確定! 回上一頁