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
  • 1,031,962
  • 187
  • 1,923
  • 1,875

0 Answers0