var paragraph = document.getElementById("p"); var text = document.createTextNode("This just got added"); paragraph.appendChild(text);