Ok, let's look at this:
Node.js is a very powerful / JavaScript-based platform built on the Google Chrome JavaScript V8 Engine.
JavaScript is a programming language used in Internet browsers. It was invented in 1995 by NetScape, I think, and was introduced to a certification organization called ECMA in 1996.
ECMA took the original JavaScript idea and made a standard called ECMAScript that every JavaScript implementation should implement. You see that JavaScript is not a language that exists somewhere on the air - every Internet browser comes with its own language implementation - this means that JavaScript usually only works in Internet browsers such as Mozilla, Safari, Opera or Chrome for example . (Internet Explorer also comes with an ECMAScript implementation, but they call it JScript for licensing reasons, which I consider)
The JavaScript implementation that comes with Google Chrome runs on the powerful V8 engine , which is written in a language called C ++ . V8 interprets your JavaScript code and provides it with all types of variables, manages memory, etc. The great thing about V8 is that it is open source and can be integrated into any other C ++ program.
So, the creators of Node had an idea to take V8 and improve it by adding features that the server should serve websites - reading files, responding to requests, routing, etc. This means that you can now program the server-side implementation of the website using JavaScript, thanks to the Node.js application, which interprets your code and essentially translates it into C ++ and later machine code down the line. An important difference is that Node.js does NOT start in your browser! It works on the server in the same way as when encoding back-end using PHP and apache.
source share