document.getElementById("text").innerText = "Your new text here"
var x = document.getElementById("myBtn").innerText;
document.getElementById("heading").innerText='';
var text = document.querySelector('#text').innerText; //'#':id '.':class