11.child nodes

by John Kiran

HTML

<html>
<body>
  <div>Begin</div>

  <ul>
    <li>Information</li>
  </ul>

  <div>End</div>

  <script>
    
  </script>
  ...more stuff...
</body>
</html>

JavaScript

for(let node of document.body.childNodes) {
		alert(node);
    }