title: ReferenceError: document is not defined (JavaScript in VS Code)
body: <p>Im learning JS. Found a good video &quot;JavaScript Programming - Full Course&quot; and stucked at the 2nd part where I need to use DOM. I have the HTML document, in  i refered to the JS file. Other stuff working well, but this:</p>
  <p>let messageEL = document.getElementById(&quot;message-el&quot;)</p>
  <p>Always get this error:</p>
  <p>ReferenceError: document is not defined</p>
  <p>I installed live server, and it works one time, than stops.</p>
  <p>What can I do, to fix this? Do I need to download some extension?
  Please tell me the solution as simple as u can Im at the beginning of the learning path.</p>
  <p><a href="https://i.stack.imgur.com/nQJce.png" rel="nofollow noreferrer">This is the code and the error</a></p>