Get the first and last item in an array using JavaScript ; let f=s[0]; · let l=s[s.length-1]; · First element is 3 Last element is 5 ; let f=s[0];.
確定! 回上一頁