innertext in js code example
Example 1: js inner text
document.getElementById("text").innerText = "Your new text here"
Example 2: HTML DOM innerText
var x = document.getElementById("myBtn").innerText;
Example 3: change innertext javascript
element.innerText = "Hello World";