javascript set text of h1 code example
Example 1: js change h1 value
document.getElementById("yourH1_element_Id").innerHTML = "yourTextHere";
Example 2: get h1 text javascript
var h1Text = document.querySelector("h1").innerText;
document.getElementById("yourH1_element_Id").innerHTML = "yourTextHere";
var h1Text = document.querySelector("h1").innerText;