Question:

What is the command that is used in node.js to import external libraries?

Answer:

Command “require” is used for importing external libraries, for example, “var http=require (“http”)”.  This will load the http library and the single exported object through the http variable.


Keywords:

© 2017 QuizBucket.org