Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. The return type of getElementsByClassName() is

  2. A.

     DOM

    B.

     Document

    C.

     Node

    D.

     NodeList

    View Answer

    Workspace

    Answer : Option D

    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.


Be The First To Comment