What happens when the JavaScript code runs?

Smart Recycling displays in the consoleNothing, the code won't runThe h2 element displays in the consoleThe h2 element's text is updated<html>
<body>
<h2 id="name">Smart Recycling</h2>
<p>Small changes, big impact</p>
<script>
console.log(document.getElementById("name").innerHTML);
</script>
</body>
</html>]]>

When the code runs, Smart Recycling displays in the console.