JAVA runs in JVM.
JavaScript runs in NodeJS.
Okay.
So, can I say that NodeJS is like JVM but for JavaScript ?
JAVA runs in JVM.
JavaScript runs in NodeJS.
Okay.
So, can I say that NodeJS is like JVM but for JavaScript ?
It isn't, NodeJS is a utility wrapper (and really a necessary one) over the Google's V8 engine, Googles JavaScript runtime.
There are also other issues with this statement as Java is compiled to its own byte code (although you could argue that this would be WASM or V8 byte code) and JavaScript is interpreted.
Despite these differences, NodeJS is like JRE for JS in a practical sense