Let’s have a look at how to run a JS file inside VS Code.
To run a JS file inside VS Code first you have to make sure you have NodeJS installed.
Once you have NodeJS installed, you can open your JS file in VS Code and simply press F5 to start debugging.
This will run the JS file.
If this doesn’t work, you can also run the file via
Open up the terminal by pressing down
CTRL + SHIFT + ~ (tilde) go to the root source of your file and run:
Happy coding 😊
Let me know what you think about this article in the comments section below.
If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.