結果 : how to compare two functions in javascript