Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
116
rated 0 times [  117] [ 1]  / answers: 1 / hits: 94074  / 11 Years ago, mon, march 4, 2013, 12:00:00

I have hello_world.js file located on my computer at the following location -



C:UsersAnkurDownloadsNodeJSworking


It has the following code-



console.log(Hellow World);


I was reading a beginners tutorial here and it says I should execute my javascript file through node.js. Now I have no idea what to do. How would I do this.



When I do this ...
enter



I get nothing.
What should I be doing to run the hello world successfully. None of the tutorials seem to be showing what needs to be done.



I am very new to this so it is probably something that is very obvious to you guys.


More From » node.js

 Answers
28

Use Node.js command prompt, then type in node C:UsersAnkurDownloadsNodeJSworkinghello_world.js


[#79846] Sunday, March 3, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
moriah

Total Points: 201
Total Questions: 100
Total Answers: 82

Location: Tuvalu
Member since Sun, Sep 4, 2022
2 Years ago
;