I'm learning DOM manipulation. I have a problem about DOM. I used this code to h1's color in console. It works!.
var h1 = document.querySelector("h1");
h1.style.color = "pink";
But when I'm using Sublime text coding same code, chrome console giving me errors. Hoping someone help me.Thanks.