結果 : how to compare function in javascript