DEV Community

Discussion on: Differences between Javascript and NodeJs

Collapse
hyoretsu profile image
Aran Leite • Edited on

Uhm. Except JS is also run on Node. And Node's sort of a standalone V8. You also don't just "run JS in the browsers", you execute it the same way you can just pop up a node terminal and execute JS. Just like how you don't "run Node.js outside the browser" because by itself it doesn't do anything.

JS on the browser's also not more or less capable than in Node.js. The only difference is that one's in an environment that has a DOM while the other isn't.