What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-08-27 22:30:02
how to run a js file in node
Save your .js file in the same folder as node.js, For windows , Usually location is- "C:\Program Files\nodejs" Open 'Command prompt and locate node.js folder' OR directly open 'Node.js command prompt' and type >> node (file_name).js Add solution