.innertext js code example
Example 1: js inner text
document.getElementById("text").innerText = "Your new text here"
Example 2: change innertext javascript
element.innerText = "Hello World";
document.getElementById("text").innerText = "Your new text here"
element.innerText = "Hello World";