how to add text to html with js code example
Example 1: how add text to element in javascript
var paragraph = document.getElementById("p");
var text = document.createTextNode("This just got added");
paragraph.appendChild(text);
Example 2: how add text to element in javascript
var p = document.getElementById("p")
p.innerText = p.innerText+" And this is addon."