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



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

Answer / 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

More Node.js Interview Questions

Explain the role of repl in node.js?

1 Answers  


How to config properties in express js?

1 Answers  


List some exit codes?

1 Answers  


What is event emmitter?

1 Answers  


What tools can help you assure a consistent style?

1 Answers  


How is node js used in web development?

1 Answers  


What are the purposes of process object in node.js

1 Answers  


What is a response header?

1 Answers  


What is a callback?

1 Answers  


What is an error-first callback?

1 Answers  


define an error-first callback?

1 Answers  


How does Node.js work?

1 Answers  


Categories