You need to make it clear that only the bottom layer of nodejs is c++ envelope, but its syntax is completely javascript syntax, so you don’t need to learn c++ at all. Just like php, php also has a bottom layer written in c or c++, but it has its own syntax, you can just call it according to the syntax, without worrying about its underlying structure.
It is recommended to look at open source projects, which can be searched on nodeclub github, to understand the basic syntax and usage of js, some extensions of es6, and of course the basic modules such as network, files, streams, events and so on provided by node itself. The most important thing is to write, and read what others write. . Play through it yourself, play through the code a few more times, and think more. That’s it! ~! ~! ~
The most important thing is to write it yourself and solve the problems you encounter during the writing process. In the early stage, first look at the node introductory examples on the Internet to familiarize yourself with the basic usage, and then look at streams, files, buffers, etc. . You can take a look at the in-depth explanation of nodejs
node.js
Apart from the fact that it is written in C++, does it have anything to do with C++ when you use it? Not really...You need to make it clear that only the bottom layer of nodejs is c++ envelope, but its syntax is completely javascript syntax, so you don’t need to learn c++ at all. Just like php, php also has a bottom layer written in c or c++, but it has its own syntax, you can just call it according to the syntax, without worrying about its underlying structure.
You just need to learn the syntax of javascript.
Look at the API, learn the framework, and write projects
It is recommended to look at open source projects, which can be searched on nodeclub github, to understand the basic syntax and usage of js, some extensions of es6, and of course the basic modules such as network, files, streams, events and so on provided by node itself.
The most important thing is to write, and read what others write. . Play through it yourself, play through the code a few more times, and think more. That’s it! ~! ~! ~
The most important thing is to write it yourself and solve the problems you encounter during the writing process. In the early stage, first look at the node introductory examples on the Internet to familiarize yourself with the basic usage, and then look at streams, files, buffers, etc. . You can take a look at the in-depth explanation of nodejs
1. Read nodejs-api several times
2. Read Learn NodeJS in Seven Days once
3. Build the MEAN framework by yourself and get started