const header = document.querySelector('h1'); function changeText() { header.innerText = 'my new text!'; }