Glossary coding Term Page
DOM selectors
`querySelector` and `querySelectorAll` find elements
Core Idea
DOM selectors is querySelector and querySelectorAll find elements. Because a match may not exist, pair them with optional chaining (?.). It usually makes the most sense alongside Event handlers, classList API, Event delegation.
Why It Matters Here
Mathbong reuses this term across javascript posts as shared vocabulary.