90.5k views
2 votes
Fill in the blank
to make a node module available externally, we call________________.

User WatersLake
by
7.3k points

1 Answer

3 votes

Final answer:

To make a node module available externally, the 'module.exports' or 'exports' object is used to expose functions or objects that can be required by other Node.js files.

Step-by-step explanation:

To make a node module available externally, you use the module.exports or exports object. This is done typically at the bottom of a Node.js module file, allowing you to specify which functions, objects, or data you want to be accessible to other files that require your module.

For example, if you have a function myFunction that you want to make available outside the module, you would add module.exports.myFunction = myFunction; at the end of your file.

User Gourav Garg
by
8.5k points