I'm completely new to node.js. By reading the documentation and tutorials, I managed to download and install node.js on my windows.
How do I test it and make it work?
The file test.js is saved in the same directory as node.exe and contains:
Openning the command-line I typed:
$ node test.js
But nothing hapenns, just:
![enter image description here]I have run it in nodejs shell and it is simply working
> console.log('Hello World'); Hello World undefined >
Also I opened nodejs command prompt not default command prompt of windows and then
it is working... same output
This recipe can be found in it's original form on Stack Over Flow.