Running Javascript in Command Line


#1

How do I run saved Javascript code through Command line script. I am using Atom and Node and have the file saved in my documents as Test.js. This is on windows.


#2

there should be plenty information on the matter, such as here:

https://stackoverflow.com/questions/6737824/how-to-run-a-hello-js-file-in-node-js-on-windows

just navigate to the right directory and do: node Test.js


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.