Câu 42: 70-480: MCSD Programming in HTML5 with JavaScript and CSS3
You create an application that sends information to a web service by using the following code: (Line numbers are included for reference only.) When the web service returns a non-zero result code, you must raise an exception that contains the result code. You need to implement the code that generates the exception. Whi…
Nội dung câu hỏi
You create an application that sends information to a web service by using the following code: (Line numbers are included for reference only.) When the web service returns a non-zero result code, you must raise an exception that contains the result code. You need to implement the code that generates the exception. Which line of code should you insert at line 04?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. CustomError.prototype = Error.prototype; — đáp án hiện tại
- B. CustomError ["ErrorType"] = Error;
- C. CustomError.customError = true;
- D. Error-constructor = CustomError;
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.