I'm running the following JavaScript code on the site I made in WordPress.
var itens = document.querySelectorAll('h1');
console.log(itens);
I am pulling from a file that is in the js folder, but it does not bring the items from h1, but if I run that same code above in the browser console it works. Can anyone tell me what I might be doing wrong?
I do not know if it helps, but this is the browser's console print = > link