This short guide describes briefly what is NodeJS. Following are some of the references to the definition and explanation of the question What is NodeJS.
Node.js® is a JavaScript runtime built on Chrome’s V8 JavaScript engine.
https://nodejs.org/en/
Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside of a browser.
https://en.wikipedia.org/wiki/Node.js
Node.js is an open source server environment which runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
https://www.w3schools.com/nodejs/nodejs_intro.asp
- NodeJS is not programming language or framework
- NodeJS is a run-time environment to execute JavaScript code
- NodeJS is asynchronous which means that it can handle multiple requests at the same time without any delay
- Core NodeJS modules include OS (Operating System), FS (File System), Events and HTTP
- Modules are used in NodeJS to organize the code. There are some built-in modules available as well. every file is a module in NodeJS
- We need to export the variables and methods if we want to use them outside the modules
- Require function is used to load a module in another module
- Module wrapper function is automatically added in each module by NodeJS
- Each wrapper function have access to the local variables like require, module, exports, __filename, __dirname