- getElementsByTagNameやgetElementsByClassNameの返り値はHTMLCollection
- DOMに変更を加えた際に取得した値が動的に変更されるのがHTMLCollection
- querySelectorAllの返り値はNodeList
- 取得した値が変更されないのがNodeList
- 違いはHTMLCollectionは動的であり、NodeListは静的である
Object.prototype.toString.call(hoge) => [object Array]
もしくは
hoge instanceof Array => true