Q. The return type of getElementsByClassName() is
β
Correct Answer: (D)
NodeList
Explanation: Like getElementsByTagName(), getElementsByClassName() can be invoked on both HTML documents and HTML elements, and it returns a live NodeList containing all matching descendants of the document or element.