MCQs>IT & Programming>JavaScript>function Question() { this.answered = false; } Question.prototype.rightAnswer = 5; console.log( new Question().rightAnswer, Question.rightAnswer ); What gets printed to the console?
JavaScript MCQs
function Question() { this.answered = false; } Question.prototype.rightAnswer = 5; console.log( new Question().rightAnswer, Question.rightAnswer ); What gets printed to the console?
Answer
Correct Answer: 5 undefined
Explanation:
Note: This Question is unanswered, help us to find answer for this one