結果 : is there an average function in javascript