Which code segment should you add at line UR06?

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)}

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

Latest PL-400 Dumps Valid Version with 171 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments