How can I execute JavaScript at the command prompt?
Answers
Answered by
2
How to Run a Node.js Application on Windows
Locate Command Prompt by entering cmd into the search bar. ...
Enter the following command, then press Enter to create a file named test-node.js containing a simple application that will print out the result 1 + 1. ...
Type node followed by the name of the application, which is test-node.js in this case, and then press Enter .
Similar questions