Inside document.getElementById() we place the ID of the element we want to interact with, like messages here.
document.getElementById()
messages
Make sure to pick document followed by . and then getElementById, "messages".
document
.
getElementById
"messages"