Notifications
Clear all
Topic starter
29/09/2022 3:40 am
You need to handle errors in UpdateRecord.js.
Which code segment should you add at line UR06?
- A . catch(error) {
alert("Caught error: " + error.message);} - B . Exception exception = Server.GetLastError() ;
if(exception != null)} - C . catch(exception e){
console.writeline(e)} - D . function (error){
console.log(error.message)}
Suggested Answer: A
Explanation:
The catch statement lets you handle the error.
Syntax: catch(err) {
Block of code to handle errors
}
Reference: https://www.w3schools.com/js/js_errors.asp
Explanation:
The catch statement lets you handle the error.
Syntax: catch(err) {
Block of code to handle errors
}
Reference: https://www.w3schools.com/js/js_errors.asp