0

I wrote this code by linking this code to html using script but display

uncaught error: text.content of null.

const myHeading = document.querySelector('h1');
myHeading.textContent = 'Hello world!';
T.J. Crowder
  • 959,406
  • 173
  • 1,780
  • 1,769

0 Answers0