• Register

Share:- Whatsapp Facebook Facebook

------------------------------------- Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.


0 votes
What is modules in node js ?
in Node.js by

1 Answer

0 votes
Modules:- Modules are re-usable block of code whose existence does not impact other code in any way. It is not supported by Javascript. Modules are introduced in ES6. Modules are important for Maintainability, Reusability, and Namespacing of Code.

Modules in Node.js is a simple or complex functionality organized in single or multiple JavaScript files which can be reused throughout the Node.js application.

Types of Module in Node.js:- There are 3 types if modules in node.js

    1. Core Modules :- http, url, querystring, path, fs and util.
    2. Local Modules:-
    3. Third Party Modules
by (4.4k points)