Node.js is a Javascript runtime environment (runtime), released in May 2009, developed by Ryan Dahl, which essentially encapsulates the Chrome V8 engine. Node.js optimizes some special use cases and provides alternative APIs to make V8 run better in non-browser environments.
What is nodejs?
First of all, it is very important to understand that Node is not a web server. It doesn't do anything by itself. It doesn't work like Apache. If you want it to be an HTTP server, you have to write it yourself with the help of its built-in libraries. Node.js is just another way to execute code on the computer. It is a simple JavaScript Runtime.
Simply put, Node.js is JavaScript running on the server.
Node.js is a platform built on the Chrome JavaScript runtime.
Node.js is an event-driven I/O server-side JavaScript environment based on Google's V8 engine. The V8 engine executes Javascript very quickly and has very good performance.
Related recommendations: "node.js Tutorial"
The above is the detailed content of what is nodejs?. For more information, please follow other related articles on the PHP Chinese website!