function firstLast(array) { return array[array.length - 1]; } firstLast([3, 5, 7, 9]); I just got the last element, how to have both ...
確定! 回上一頁