What is Node.js?
A lot of the confusion for newcomers to Node is misunderstanding exactly what it is. The description on nodejs.org definitely doesn’t help.
Node.js is very easy to install. If you’re using Windows or Mac, installers are available on the download page.
I’ve Installed Node, now what?
$ node > console.log('Hello World'); Hello World undefined
In the above example I typed “console.log(‘Hello World’)” into the shell and hit enter. Node will then execute that code and we can see our logged message. It also prints “undefined” because it displays the return value of each command and console.log doesn’t return anything.
In hello.js i have return: console.log(‘Hello World’);
$ node hello.js Hello World
In next blog i will write how to use NPM(Node package Manager) with node.js.
Helical It Solution
Best Open Source Business Intelligence Software Helical Insight is Here