SyntaxFix
Write A Post
Hire A Developer
Questions
Instead of appending element you can just do.
document.getElementById("p").textContent += " this has just been added";
<p id ="p">This is some text</p>