Hello I have an issue with running .js file on vs code. I already installed node js but when I try to run it shows message in the picture so what I need to do to fix the issue?
- Computers, by themselves, do not know what to do with JS. Browsers get shipped with the tools to interpret JS (eg. Chrome uses the V8 Engine). So, if you have not already, you will need to download Node
- Now, you need to tell your computer how it can interpret JS files. To do this, you would use a command like:
nodeis a command, and the next argument can be the file you want to run. For more information, I would do some searching on the web/YouTube.
I hope this helps.
For just playing around and testing JS, I would also suggest you check out the Quokka.js extension for VS Code.
I already install node.js. I use Quokka.js instead.
I’ve installed it. Thank you.