SoFunction
Updated on 2025-03-10

12 things I have to say

1. The javascript engine of node.js is v from the Google Chrome project. V8 is currently the fastest javascript engine in the world.

2. Use node to start angular-seed-master: nodescripts/web-server.js

3. Commonnjs attempts to define a set of APIs used by ordinary applications, thereby filling the shortcomings of the JavaScript standard library being too simple. node.js is the implementation of commonjs.

4. The node.js package is a directory, and there is package.json in the top directory.

5. Basic usage of node: node xxx.js (script file name)  or node-e "xxxxxxxxx" (code that can be executed directly)

6. Node package manager (npm), which can be used to install some applications online.

7. Use supervisor to refresh the script and use it for debugging. Install: npminstall-gsupervisor                                                                                                                 �

8. Node.js has built-in http server support, which means you can easily implement a combination of a website and a server.

9. The programming mode of event-driven and asynchronous I/O (single-threaded) is its core.

10. node.js, a server-side javascript, which allows running javascript code on the backend (out of the browser environment).

11. Node Enter --> repl(read-eval-printloop) mode, press ctrl+c twice in a row to exit repl mode.

12. Modules are the basic components of node.js applications, and files and modules correspond one by one.