Question: Which statement can be used to select the element from the DOM containing the text "The LinkedIn Learning library has great JavaScript courses" from this markup?
- document.querySelector("div.content")
- document.querySelector("span.content")
- document.querySelector(".content")
- document.querySelector("div.span")
Answer: The correct answer of the above question is Option B:document.querySelector("span.content")