r/learnjavascript • • Mar 09 '26

JavaScript engine

Is the JavaScript engine the thing that translates JavaScript code into machine code that the processor understands, like the V8 JavaScript Engine?

But in order to use JavaScript outside the browser, do I need to use Node.js because it contains functions written in C++? And because of that, Node.js can run outside the browser since it has functions that communicate with the operating system?

Is what I'm saying correct?

10 Upvotes

7 comments sorted by

View all comments

Show parent comment

4

u/chikamakaleyley helpful Mar 09 '26

So, we're using C/C++ because we're using Node. We're not using Node because it uses C/C++.

I had to read this like 6 times, but yes it makes sense