What is the command used to import external libraries?

 The “require” command is used for importing external libraries. 

Example:
var http=require (“http”)
It will load the http library . The single exported object through the http variable.

Comments

Popular posts from this blog

Which node logger did you use in your project?

What is a Callback function in Node.js?