結果 : how to use function as parameter in javascript