NodeList
objects are collections of nodes such as those returned by Node.childNodes
and the document.querySelectorAll
method.NodeList
by index. This method doesn't throw exceptions as long as you provide arguments; a value of null
is returned if the index is out of range and a TypeError
is thrown if no argument is provided.