Simply say that Node.js is running on the server side of the javascript.
Node.js is a platform based on the Chrome JavaScript runtime.
Who is suitable for reading this tutorial?
If you are a front-end programmer, you do not know like dynamic programming languages such as PHP, Python or Ruby, and then you want to create your own services, then Node.js is a very good choice.
Node.js is running on the server side of the javascript, if you are familiar with Javascript, then you will be very easy to learn Node.js.
Of course, if you are a back-end programmer, want to deploy some high-performance services, then learning Node.js is also a very good choice.
Before you learn this tutorial you need to understand
Before continuing this tutorial, you should understand some basic computer programming terminology. If you have studied Javascript, PHP, Java and other programming languages, will help you understand Node.js faster programming.
Use the version
We can use the following command to view the current version of the node:
$ node - v v4 . 4.3
Note: There may be differences between different versions.
The first Node.js program: Hello World!
Script mode
Here is our first Node.js program:
Example
console.log ("Hello World");
Running examples »
Save the file, the file name is helloworld.js, and through the node command to execute:
node helloworld . js
After the program is executed, it will output Hello World at the terminal.
Interactive mode
Open the terminal, type node into the command interactive mode, you can enter a code statement immediately after the implementation and display the results,