Câu 74: 70-480: MCSD Programming in HTML5 with JavaScript and CSS3
You are creating a custom function. You pass an object named testObj to the function as a parameter. You do not use inheritance through the functions. The function must establish whether testObj inherits from another object named parentObj. You need to ensure that the function performs as required. Which method or ope…
Nội dung câu hỏi
You are creating a custom function. You pass an object named testObj to the function as a parameter. You do not use inheritance through the functions. The function must establish whether testObj inherits from another object named parentObj. You need to ensure that the function performs as required. Which method or operator should you add to the function?
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. parentObj.instanceof(testObj)
- B. testObj.isPrototypeOf(parentObj) — đáp án hiện tại
- C. testObj.instanceof(parentObj)
- D. parentObj.isPrototypeOf(testObj)
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.