InterviewSolution
Saved Bookmarks
| 1. |
What is the procedure to add methods to HTMLElement so that they will be inherited by the objects that represent the HTML tags in the current document?(a) HTMLElement.prototype(…)(b) HTMLElement.prototype(c) HTML.addmethods()(d) HTML.elements(add)The question was posed to me in quiz.My query is from Augmentation of Classes in division Classes and Modules in JavaScript of JavaScript |
|
Answer» The CORRECT answer is (b) HTMLElement.prototype |
|