On the homepage of Node.js, It's clearly said --
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine.
I was trying to understand, what actually is a "runtime built". After some googling, I got some idea on this.
Please check my understandings and correct me anywhere if I got it wrong. If I got the whole thing wrong, please explain it elaborately.
A program runtime is a specific time duration, in which the program got itself executed.
We know, Node.js ships with pre-compiled binary program, which runs the JS program. It's built on Chrome's V8 JS engine which is written on C++. Node.js run a JS program directly and compiles it to machine code. Then OS execute this machine code. Every step I told earlier, happens in node program runtime.
This is why Node.js is called "a javascript runtime built". Because Node binary built the JS program to machine code and OS executes it. And all these happen during the time when I run a JS program/file with node.
node myJs.js
// Hello World
Thanks in advance.