Access the heading's text by typing
.innerHTML
.
<html>
<body>
<h1 id="newspaper">The Springfield Shopper</h1>
<script>
console.log(document.getElementById("newspaper").innerHTML);
</script>
</body>
</html>]]>
Make sure to type
.innerHTML
.