Node. js has to say 12 things
- 2020-03-30 03:31:47
- OfStack
1. Node. js, server-side javascript, allows javascript code to run on the back end (outside of the browser environment).
2. The event-driven, asynchronous I/O programming mode (single thread) is its core.
The javascript engine for 3. Node. js is v8 from the Google chrome project. V8 claims to be the fastest javascript engine in the world.
5.com monnjs attempts to define a set of apis that are used by ordinary applications to fill in the gap of the simplistic javascript standard library. Node. js is an implementation of commonjs.
Node package manager (NPM), which can be used to install some applications online.
Basic use of node: node XXX. Js (script name) Or node-e "XXXXXXXXX" (code that can be executed directly)
8 node enter - > Repl (read-eval-print loop) mode, press CTRL +c twice to exit repl mode.
9. Use supervisor to refresh scripts for debugging NPM install -g inspect Start application: supervisor app.js
10. Modules are the basic components of node.js applications.
The package of node.js is a directory, and the top-level directory contains package.json
12. Start angular-seed-master: with node; The node scripts/web - server. Js