How do you select all direct children of a div with the class 'container'?
document.querySelector('div.container').children returns all direct children (Element nodes only) of the div with class 'container'. This property returns an HTMLCollection containing only Element nodes, excluding text nodes and comments. If you need all nodes including text and comments, you would use childNodes instead. The difference is important when working with mixed content that includes both elements and text.