MCQs > IT & Programming > JavaScript > Value of c in the following code? function a() {} a.prototype.version = '1.8'; var b = new a(); var c = b.prototype.version;

JavaScript MCQs

What is the value of c in the following code snippet?

function a() {}
a.prototype.version = "1.8";
var b = new a();
var c = b.prototype.version;


Answer

Correct Answer: This code snippet causes an error

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