MCQs > IT & Programming > JavaScript > Consider the code: function a() {} function b() {} Which statement makes 'a' object inherit from 'b' object?

JavaScript MCQs

Consider the code snippet given below:

function a() {}
function b() {}

Which of the following statements makes "a" object inherit from "b" object?


Answer

Correct Answer: a.prototype = new b();

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it