結果 : loop through each element in array javascript