結果 : pass a function as an argument javascript