<html>
<body>
<h1>The NodeList Object</h1>
<h2>The length Property</h2>
<!-- This is a comment node! -->
<p>The number of child nodes in the body element are:</p>
<p id="demo"></p>
<p>Whitespace between elements are text nodes. Comments are also nodes.</p>
<script>
const nodeList = document.body.childNodes;
let number = nodeList.length;
document.getElementById("demo").innerHTML = number;
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_nodelist_length by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:39:46 GMT -->
</html>