Which DOM selection method returns a live HTMLCollection?
document.getElementsByClassName() returns a live HTMLCollection, which means if elements are added or removed from the document after the initial collection is created, the collection will automatically update to reflect these changes. This is in contrast to methods like querySelectorAll(), which returns a static NodeList that does not update when the document changes. Understanding this distinction is important when working with dynamic content that might change after the initial selection.