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?

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? Correct Answer HTMLElement.prototype

It is implementation-dependent whether classes defined by the host environment (such as the web browser) can be augmented using Object.prototype. In many web browsers, for example, you can add methods to HTMLElement.prototype and those methods will be inherited by the objects that represent the HTML tags in the current document.

Related Questions

A primary class mathematics teacher poses the following question to his students: "Reena and Sharma went to a shop to buy a bag. There were many bags with different price tags. They got confused by looking at so many price tags. Can you help them by arranging the price tags either in ascending or descending order"? BAG-A\(\rightarrow\) Rs. 4732, BAG B \(\rightarrow\) Rs. 2364,  BAG- C \(\rightarrow\) Rs. 1934, BAG- D \(\rightarrow\) Rs. 3475, BAG- E \(\rightarrow\) Rs. 2937, BAG-F \(\rightarrow\) Rs. 3004. In the given context, which of the following statements is true?