Share:- Whatsapp Facebook Facebook

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

What is modules in node js

0 votes
7 views
What is modules in node js ?
asked Nov 10, 2018 in Node.js by vimal yadav

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
answered Nov 10, 2018 by ranju_12 (3,740 points)
...