結果 : sum the elements of an array javascript