Node types, traversal and collections
Comes up in: Web fundamentals, Coding
This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.
What it covers
- Node vs Element
childNodesvschildren- live
HTMLCollectionvs staticNodeListfromquerySelectorAll TreeWalkerclosest,matches,contains
Words you will know
What you will practise
- loop-over-live-collection bug
Interview questions this answers
- What is the difference between
childrenandchildNodes? - What is the difference between a live
HTMLCollectionand a staticNodeList?