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!';
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!';