I'm in an entry level javascript course and am studying our Document Object Model section and I am trying to understand the reason why the script below has no value, could someone explain it a little?
<!DOCTYPE html>
<html>
<body id="bdy">
<h1 id="id00">Test 1</h1>
<h1 id="id01">Test2</h1>
<p id="id02"></p>
<script>
document.getElementById("id02").innerHTML = document.getElementById("bdy").childNodes[0].nodeValue;
</script>
</body>
</html>