結果 : javascript accept function as parameter