The page contains this HTML:
<ul id="menu">
<li>Home</li>
<li>Courses</li>
</ul>What does the following JavaScript code print when it runs on this page?
const menu = document.getElementById("menu");
console.log(menu.childNodes.length, menu.children.length);
The line breaks before, between and after the two li elements are three text nodes: 3 + 2 = 5 childNodes, but only 2 element children.