結果 : get last but one element of array javascript