Core: learn it Step 7 of 16 on the Frontend Developer roadmap
Selecting elements
document.querySelector() and querySelectorAll() find elements using the same selectors as CSS. Find elements once and keep them in variables.Core: learn it Step 7 of 16 on the Frontend Developer roadmap
document.querySelector() and querySelectorAll() find elements using the same selectors as CSS. Find elements once and keep them in variables.