Home >Web Front-end >Front-end Q&A >Are all node codes open source?
The node code is open source; "Node.js" is a cross-platform open source running environment. It is a JavaScript running environment based on the "Chrome V8" engine. It is used to execute JavaScript code outside the browser. Node is also The preferred runtime environment built on the Chrome JavaScript runtime for building fast, scalable, and efficient web applications.
The operating environment of this article: Windows 10 system, nodejs version 16, Dell G3 computer.
Node.JS is a JavaScript running environment based on the Chrome V8 engine. It is a development platform that allows JavaScript to run on the server. It makes JavaScript become the same as PHP, Python, A scripting language on par with server-side languages such as Perl and Ruby.
Node.js is a cross-platform open source runtime environment used to execute JavaScript code outside the browser. It is also the preferred runtime environment built on top of the Chrome JavaScript runtime and is primarily used for building fast, scalable and efficient web applications.
Node.JS is open source, it uses the MIT license; in addition, Node.JS is based on the Chrome V8 engine, and v8 is a BSD license.
What is a BSD license ?
BSD license was originally used on each 4.4BSD/4.4BSD-Lite version released by the University of California, Berkeley (BSD is the abbreviation of Berkly Software Distribution), and was gradually used later. Come down.
In 1979, the University of California, Berkeley released BSD Unix, known as the pioneer of open source code. The BSD license was developed with BSD Unix. The BSD license is now used by Apache and BSD operating systems Waiting for adoption by open source software.
What is the MIT License?
The MIT License (The MIT License) is one of the most widely used among many software licensing terms. A. Compared with other common software licensing terms (such as GPL, LGPL, BSD), MIT is a relatively loose software licensing terms.
Expand knowledge
Node, as an emerging front-end framework and back-end language, has many attractions: RESTful API, single-threaded.
Node can still process tasks concurrently without adding additional threads - Node.js is single-threaded. It implements concurrent operations through the event loop, and we should make full use of this - avoid blocking operations as much as possible, and instead use non-blocking operations.
Non-blocking IO
V8 virtual machine
Event-driven
Recommended learning: "nodejs video tutorial"
The above is the detailed content of Are all node codes open source?. For more information, please follow other related articles on the PHP Chinese website!