how to run js file in visual studio terminal code example
Example 1: how to run js file in node terminal
node FileName.js
Example 2: how to run javascript in visual studio code
// install live server and then right click on your index.html and the keep the browser ready