Q. Which DOM method returns the first element that matches a selector?
β
Correct Answer: (A)
querySelector()
Explanation: querySelector returns the first element matching a CSS selector.