We can create variables like var element and use them to store the HTML elements we access.

<html>
<body>
<h3>Tweeter</h3>
<p id="messages">New Messages</p>
<script>
var element = document.getElementById("messages");
console.log(pElement)
</script>
</body>
</html>]]>

Make sure to pick var, followed by element.