MCQs > IT & Programming > JavaScript > function a(a1) {this.a1 = a1;} a.prototype.a2 = 'Prototype property'; var c = new a(); Which statement returns true?

JavaScript MCQs

Consider the code snippet given below:

function a(a1) {this.a1 = a1;}
a.prototype.a2 = "Prototype property";
var c = new a();

Which of the following statements returns true?


Answer

Correct Answer: c.hasOwnProperty("a1");

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