

The below command line shows how a module “express” can be installed. In order to use modules in a Node.js application, they first need to be installed using the Node package manager.

It’s always a good programming practice to always segregate code in such a way that makes it more manageable and maintainable for future purposes. A module in Node.js is a logical encapsulation of code in a single unit.
