How can we select all elements with the class “example” in a document using JavaScript?
A) document.querySelector(“.example”)
B) document.querySelectorAll(“.example”)
C) document.getElementByClass(“example”)
D) document.getElementsByTagName(“.example”)