html Node vs Element
- Node vs Element
HTML Document consists of different node, element is one type of node.
- NodeList vs HTMLCollection
NodeList is a collection of node, HTMLCollection is a collection of element.
- HTMLCollection vs NodeList vs Array
HTMLCollection 和 NodeList 都是动态的,会随着 DOM 的变化而变化
Array 是静态的数据结构