Dev.bg: All in One ’24 – Lab08 Frontend Question №3

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”)