Node.js had to say the 12 points of content _node.js

Source: Internet
Author: User

1.node.js, server-side JavaScript, which allows JavaScript code to run on the back end (out of the browser environment).

2. Event-driven, asynchronous I/O programming mode (single-threaded) is at its core.

3.node.js's JavaScript engine is V8, from the Google Chrome project. V8 is now the fastest JavaScript engine in the world.

HTTP server support is built into the 4.node.js, which means you can easily implement a combination of Web sites and servers.

5.commonnjs attempts to define an API used by a common application to fill the simplistic deficiencies of the JavaScript standard library. Node.js is the realization of COMMONJS.

6.node Package Manager (NPM), which can be used to install some applications online.

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

8.node carriage return-->repl (Read-eval-print loop) mode, press CTRL + C continuously two times to exit Repl mode.

9. Use Supervisor to refresh script, debug, install: NPM install-g Supervisor Startup application: Supervisor App.js

10. The module is the basic component of the Node.js application, and the file and module are one by one corresponding.

The 11.node.js package is a directory with Package.json in the top directory.

12. Start Angular-seed-master:node scripts/web-server.js with node

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.