Node.js is a javascript runtime that uses the JavaScript engine for JavaScript V8. The interface already uses the JavaScript engine in the browser (V8 for Chrome, SpiderMonkey for Firefox, Chakra for Edge), so if Javascript works in the browser in Node.js, you can expect very similar environments.
However, you may be interested in using Node.js modules on the interface. Modules are packaged using a tool called npm . You can use module loaders or bundles like Browserify , webpack or Rollup.js to accomplish this.
source share