結果 : javascript function taking array as parameter