domJavaScriptDomMediumHow does document.querySelector() differ from document.getElementById()?1querySelector accepts any CSS selector and returns the first match; getElementById matches only an id2They are identical3getElementById accepts CSS selectors4querySelector returns all matchesBack to list