[Solved] why javascript code changed the innerText,while the page dosen’t? [closed]
first of all, earn your element control then change it : const span = document.querySelector(‘span’); span.textContent=”new text”; 5 solved why javascript code changed the innerText,while the page dosen’t? [closed]