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

A var elements = document.getElementsByClassName("reveal");
B var elements = document.getElementByClassName("reveal");
C var elements = document.getElementByName("reveal");
D var elements = document.getElementsClassName("reveal");

Correct Answer: var elements = document.getElementsByClassName("reveal");

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

Related Questions

What is the code snippet to change the class and let the stylesheet specify the details?

Next steps