Node.Js Tutorial Part1- Hello World in cmd


Instead of going for MEAN framework or express or the world stuff, lets begin with hello world basic example using node.js

First open your editor(notepad++/anyother) and copy the below command

console.log(“Hello world”);

Now save it as helloworld.js in your workspace. Here i created workspace in D:

Now lets begin the show..

1.Open your command prompt

2. go to your workspace D:/nodesworkspace

3. type node helloworld.js

4. See the output “Hello World” in command prompt like shown below..

23-05-2014 12-11-11



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s