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?

  1. document.querySelector("div.content")
  2. document.querySelector("span.content")
  3. document.querySelector(".content")
  4. document.querySelector("div.span")

Answer: The correct answer of the above question is Option B:document.querySelector("span.content")