When do we use the querySelector() method?

When we want to access elements with specific selectorsWe only use it when an element doesn't have an IDWe only use with with elements that have a class

When we want to access elements with specific selectors.