NodeList
A list-like collection of DOM nodes, returned by methods such as querySelectorAll.
In more detail
A NodeList from querySelectorAll is static, a fixed snapshot. It supports forEach and index access but is not a real array.
Related terms
- querySelectorAll() — The DOM method that returns every element matching a CSS selector as a static NodeList.
- HTMLCollection — A live list of elements, returned by older methods such as getElementsByClassName, that updates automatically whenever the DOM changes.
Taught in
- Modern DOM Querying: querySelector, closest And matches — Frontend Architecture & Web Platform