結果 : how to pass function to another function in javascript