adspace


What is require in Node.js? How will you load external files and libraries in Node.js?

Answer Posted / Kapil Kumar

require is a function built into Node.js used to load and execute JavaScript modules. To load an external file, use the require() method followed by the module name.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is node js losing popularity?

590


How we can read a file in node js?

571