Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What is the code snippet to find all container elements with class “reveal”?

  2. A.

     var elements = document.getElementsByClassName("reveal");

    B.

     var elements = document.getElementByClassName("reveal");

    C.

     var elements = document.getElementByName("reveal");

    D.

     var elements = document.getElementsClassName("reveal");

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    The above code snippet finds all container elements with class “reveal”.


Be The First To Comment