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