how add text to element in javascript
Code Example - how add text to element in javascript
var paragraph = document.getElementById("p");
paragraph.textContent += "This just got added";
var paragraph = document.getElementById("p");
paragraph.textContent += "This just got added";