Problem Statement
Which command is used to import a module in Node.js?
Explanation
The `require()` function is used to load built-in, third-party, or user-defined modules in Node.js.
Get the Preplance app for a seamless learning experience. Practice offline, get daily streaks, and stay ahead with real-time interview updates.
Get it on
Google Play
4.9/5 Rating on Store
Node Js · Interview Question
Detailed answer, explanation and code for this interview question. Ideal for Node Js interview preparation, coding rounds and viva questions.
Which command is used to import a module in Node.js?
Master Node Js with our complete collection of questions, tutorials and guides.