// Assume you have a container element with a list of items const container = document.getElementById('container'); const items = container.children;