NodeList
Last updated: 2026-09-09
NodeList NodeList
NodeList is a collection from querySelectorAll. Has forEach, not an array.
| Category | DOM |
|---|---|
| ES version | ES1 |
📝 Syntax
const items = document.querySelectorAll('.item');
items.forEach(item => console.log(item));
▶ Example
Edit the code, press Run, and see the result in the output panel:
Output:
(iterating)
💡 Tip NodeList has forEach only — spread for map/filter.
ℹ️ info Static NodeList from querySelectorAll.
🏷️ Related Items
💡 Related Cases
More case studies coming soon — check back later.
📚 Related Tutorials
❓ FAQ
QNodeList vs HTMLCollection?
ANodeList static; HTMLCollection dynamic.
QHow to convert?
A[...nodeList] or Array.from().
QStatic or dynamic?
AquerySelectorAll is static.