Who is suitable for reading this tutorial ？
If you are a front-end programmer , You don't know how to be like PHP、Python Or Ruby And other dynamic programming languages , Then you want to create your own service , that Node.js It's a very good choice .
of course , If you're a back-end programmer , Want to deploy some high-performance Services , So study Node.js It's also a very good choice .
Before learning this tutorial, you need to know
We can use the following command to view the current Node edition ：
$ node -v v4.4.3
be careful ： There may be differences between different versions .
first Node.js Program ：Hello World！
Here is our first Node.js Program ：
Run instance »
Save the file , The file name is helloworld.js, And through node Command to execute ：
After the program is executed , Normally , It will output... At the terminal Hello World.
Open the terminal , typing node Enter command interaction mode , You can enter a code statement and execute it immediately and display the results , For example ：
$ node > console.log('Hello World!'); Hello World!
Gif Example demonstration
Next we pass Gif The figure shows you the example operation ：