Home > Web Front-end > JS Tutorial > What is the difference between node.js and javascript?

What is the difference between node.js and javascript?

醉折花枝作酒筹
Release: 2021-06-15 09:04:35
Original
4254 people have browsed it

The difference between node.js and javascript is: JavaScript is a programming language (scripting language), while Node.js is a platform, which can be simply understood as a browser-independent running environment for JavaScript .

What is the difference between node.js and javascript?

The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.

Although it cannot be said that they have nothing to do with each other, they do have little relationship:

First, JavaScript is a programming language (scripting language), and Node.js is a platform. It can be simply understood as an execution environment for JavaScript.

Second, JavaScript used to be executed in the browser and required a JavaScript engine in the browser. Firefox has an engine called Spidermonkey, Safari has a JavaScriptCore engine, and Chrome has a V8 engine.

Now someone has taken out Chrome's V8 engine and packaged it, and added built-in basic modules (mostly written in JavaScript) to form Node.js.

Third, Node.js can be said to be a browser-independent running environment for JavaScript.

Fourth, the content involved in the two is also quite different

[Recommended learning: javascript advanced tutorial]

The above is the detailed content of What is the difference between node.js and javascript?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template