Definir texto do elemento DOM
document.getElementById("myBtn").textContent = 'Hello World';
Nasty Narwhal
document.getElementById("myBtn").textContent = 'Hello World';
var x = document.getElementById("myScript").textContent