I am trying to append a newly created paragraph element to the main section of my HTML. I have created the paragraph element and appended text to it. I am now trying to add this element to the main id of the HTML. My console does not show any error messages, but this element has not been added to my HTML. I appreciate any feedback!
let newParagraph = document.createElement("p");
let newParagraphText = document.createTextNode("ipsom lorem");
newParagraph.appendChild(newParagraphText);
let results = document.querySelector("#results");
results.appendChild(newParagraph);
<main id="results"></main>