What is the role of require() in Node JS?

It is used to include modules from external files. It takes one string parameters( location of file ) that we want to include.



require('file location')

Suggest An Answer

No suggestions avaliable!

Latest post from Node js Interview Questions

Ask Question