skip to Main Content

I am a complete beginner and so am just playing around with writing some code. I can get output to show in browser web developer tools, but nothing shows up (even errors) in the output panel on VSS. From what I’ve seen (videos), when I save my file, the the output should automatically show in the output panel. I’m missing something but don’t know what. I am using Visual Studio Code version 1.85.2
screenshot of code in program

I have seen a lot of suggestions of saving, or right click and click ‘run’. It doesn’t show up ‘run’ for me on the right click menu but I have clicked the green play icon in the top left corner. It switched my view over from ‘output’ to ‘terminal’ and then prints my local file path.

Another solution suggested going into setting and enabling ‘Run in terminal’, but that option wasn’t there that I could see.

I have the extensions ‘live server’ and ‘prettier’ installed.

Thanks

2

Answers


  1. Chosen as BEST ANSWER

    Running it with Node.js from within VSCode did the trick. Thank you everyone- I appreciate all the answers.


  2. You need to run the Code to see any output, I suggest you use Node.js to do this. Node.js is a runtime for JavaScript and lets you execute it outside of the Browser. You can download it here and read the doc. https://nodejs.org/en

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search