MCQs>IT & Programming>JavaScript>Value of C in given code? function a(version) { this.version = version; } a.prototype.version = '1.8'; var b = new a('1.8.1'); delete b.version; var c = b.version;
JavaScript MCQs
What is the value of c in the following code snippet?
function a(version) {
this.version = version;
}
a.prototype.version = '1.8';
var b = new a('1.8.1');
delete b.version;
var c = b.version;
Answer
Correct Answer: 1.8
Explanation:
Note: This Question is unanswered, help us to find answer for this one