What is the purpose of the querySelector() method in JavaScript?
querySelector()
Retrieves all elements within a specified parent element.
Retrieves all elements with a specific class name.
Retrieves all elements that match a CSS selector.
Retrieves the first element that matches a CSS selector.