You can simply fetch the innerText and update with new value:
document.getElementById("myContent").innerText = document.getElementById("myContent").innerText + " is now changed";
<p id="myContent">some content</p>
1
solved Adding content to HTML
tag [closed]