Who should read this tutorial?
If you are a front-end programmer, you don’t know dynamic programming languages like PHP, Python or Ruby, and then you want to create your own service, then Node.js is a very good choice.
Of course, if you are a back-end programmer and want to deploy some high-performance services, then learning Node.js is also a very good choice.
What you need to know before following this tutorial
First Node.js program: Hello World!
Here is our first Node.js program:
console.log (" Hello World");
Save the file, the file name is helloworld.js, and execute it with the node command:
node - helloworld.js
After the program is executed, if it is normal, it will output Hello World in the terminal.
Open the terminal, type node to enter the command interactive mode, you can enter a code statement and execute it immediately and display the result, for example:
> node -v v4.6.1 >node helloworld.js Hello World
Node.js is well suited to use in:
- Single page web application with Node.js development
- Web server back-end
- Mobile and desktop applications (including games)
- Back end for machine learning systems or IoT devices
Is Node.js A Programming Language?