xxxxxxxxxx
You can run your JavaScript file from your terminal only if you have installed Node. Js in your system. Install Node. js from Steps to install Node.
Steps :
Open Terminal or Command Prompt.
Set Path to where New. js is located (using cd).
Type “node New. js” and press ENTER