First you need to download Node.js from the official site like any program:
https://nodejs.org/en/download
Then, in Visual Studio Code, open a terminal and type "node app.js" where app.js is the name of the JavaScript file to run.
To display code changes in real time, use Nodemon or Quokka.