結果 : how to pass a function as a parameter to another function in javascript