結果 : javascript function error handling