title: document not defined javascript error (works in Chrome console but not in integrated terminal of editor)
body: <p>I am using Visual Studio Code and I like to test my console.logs or my javascript using the integrated terminal in VSC. I have node.js installed and I use the 'node .' command to test run my javascript. I get this error</p>
  
  <p>console.log(document.getElementById("para").textContent);
                                                                            ^</p>
  
  <p>ReferenceError: document is not defined</p>
  
  <p>I am just testing some stuff.
  <a href="https://i.stack.imgur.com/NDtbg.jpg" rel="nofollow noreferrer">My html code</a>, 
  <a href="https://i.stack.imgur.com/vf88Z.jpg" rel="nofollow noreferrer">javascript code</a></p>
  
  <p>However, when I test my code through the chrome console, it works for me. No document not defined error or anything. Can anyone assist me on this?
  Thanks !</p>