A. document.getElementByClassName()
B. document.getElementsByClassName()
C. document.querySelectorAll(".class")
D. Both b and c
Correct Answer is :
D. Both b and c
Explanation
The getElementsByClassName() method returns a collection of all elements that match a specified class name, whereas querySelectorAll(".class") returns a static NodeList of all elements matching the class.