Which method returns a static collection rather than a live one?
document.querySelectorAll() returns a static NodeList rather than a live collection. This means that changes to the DOM after the call won't be reflected in the collection. In contrast, methods like getElementsByTagName(), getElementsByClassName(), and getElementsByName() return live collections (HTMLCollection or NodeList) that automatically update when the document changes. This difference is important when working with dynamic content, as code that assumes a collection will automatically update may behave unexpectedly with static collections.