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