Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Relation between Node.js and FireFox

I knew that node.js based on V8 Javascript engine of Google Chrome. And I want to know If Node.js can run on FireFox ,then how?

What version of firefox support V8 javascript Engine or Node.js?

like image 249
Nomura Nori Avatar asked Nov 08 '16 13:11

Nomura Nori


People also ask

Does NodeJS work on Firefox?

Node. js is JavaScript on the server. For example, you can start a Node. js server on http://localhost:8000/, and you can access it with Chrome or Firefox.

Does browser use NodeJS?

Yes, the browser and node. js both use the JavaScript software language - but the literal Run Time Environments are different. Node. js, aka server side JavaScript has many similarities with client-side JavaScript.

What is difference between NodeJS and browser?

Another difference is that Node. js supports both the CommonJS and ES module systems (since Node. js v12), while in the browser we are starting to see the ES Modules standard being implemented. In practice, this means that you can use both require() and import in Node.

Is NodeJS part of Chrome?

Node is a runtime built on Chrome's V8 JavaScript engine. It is basically writing JavaScript for the server side. It is designed for building scalable network applications. Node uses an event-driven, non-blocking models that makes it lightweight and efficient.


1 Answers

You are mixing up JS Engine and browser.

  • V8 is the JS Engine of Google Chrome (also used by Chromium, MongoDB among others).
  • SpiderMonkey is the JS Engine of Firefox (also used by GNOME and Adobe as examples).
  • Chakra is Microsoft's JS Engine, by Internet Explorer, old Edge (new one is Chromium based, and as such use V8) and some other Microsoft projects.

Node.js is based on V8, which you confuse with Google Chrome. They use the same JS Engine, but you don't need any part of Chrome itself to use Node.js.

There has been project to port node.js to SpiderMonkey, like SpiderNode or JXcore, but aren't actively developed anymore.

On the other side, Microsoft had worked on making node-chakracore. It has been archived at the end of 2019. It even had some really interesting options on it (Reverse Time Travel for example).

like image 184
DrakaSAN Avatar answered Oct 21 '22 05:10

DrakaSAN