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

What test framework did you use to test your nodejs applications

What is V8 Engine? What is the relationship between Node.js and V8?