MCQs > IT & Programming > Prototype Programming > Consider the following code snippet: Element.addMethods({  : show: function(element) {  : alert('This is prototype.');   } }); What does this code snippet do?

Prototype Programming MCQs

Consider the following code snippet:
Element.addMethods({
 : show: function(element) {
 : alert("This is prototype.");
  }
});

What does this code snippet do?

Answer

Correct Answer: It adds show method to all elements.

Explanation:

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

Prototype Programming Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Prototype Programming Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it